blob: 9004d9f41c4716c0fe16d7f265e37328fae027ca [file] [log] [blame]
Chris Lattner06611052007-08-28 05:03:08 +00001// RUN: clang -parse-ast-check %s
2
3// Check C99 6.8.5p3
4void b1 (void) { for (void (*f) (void);;); }
5void b2 (void) { for (void f (void);;); } // expected-error {{declaration of non-local variable}}
6void b3 (void) { for (static int f;;); } // expected-error {{declaration of non-local variable}}
7void b4 (void) { for (typedef int f;;); } // expected-error {{declaration of non-local variable}}