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