2007-10-17 08:52:43 +08:00
|
|
|
// RUN: clang -fsyntax-only -verify %s
|
|
|
|
static int f = 10;
|
2008-08-10 09:58:45 +08:00
|
|
|
static int b = f; // expected-error {{initializer element is not a compile-time constant}}
|
2008-05-31 02:14:48 +08:00
|
|
|
|
2008-08-10 09:58:45 +08:00
|
|
|
float r = (float) &r; // expected-error {{initializer element is not a compile-time constant}}
|
2008-05-31 02:14:48 +08:00
|
|
|
long long s = (long long) &s;
|
|
|
|
_Bool t = &t;
|