llvm-project/clang/test/Sema/static-init.c

4 lines
134 B
C

// RUN: clang -fsyntax-only -verify %s
static int f = 10;
static int b = f; // expected-error {{initializer element is not constant}}