Anders Carlsson | 1a86b33 | 2007-10-17 00:52:43 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -verify %s |
| 2 | static int f = 10; |
Chris Lattner | d880363 | 2008-08-10 01:58:45 +0000 | [diff] [blame] | 3 | static int b = f; // expected-error {{initializer element is not a compile-time constant}} |
Eli Friedman | c1cc6dc | 2008-05-30 18:14:48 +0000 | [diff] [blame] | 4 | |
Chris Lattner | d880363 | 2008-08-10 01:58:45 +0000 | [diff] [blame] | 5 | float r = (float) &r; // expected-error {{initializer element is not a compile-time constant}} |
Eli Friedman | c1cc6dc | 2008-05-30 18:14:48 +0000 | [diff] [blame] | 6 | long long s = (long long) &s; |
| 7 | _Bool t = &t; |