Chris Lattner | 3b427b3 | 2007-10-11 00:18:28 +0000 | [diff] [blame^] | 1 | // RUN: clang -fsyntax-only -verify %s |
Chris Lattner | ae3b701 | 2007-08-28 05:03:08 +0000 | [diff] [blame] | 2 | |
| 3 | // Check C99 6.8.5p3 |
| 4 | void b1 (void) { for (void (*f) (void);;); } |
| 5 | void b2 (void) { for (void f (void);;); } // expected-error {{declaration of non-local variable}} |
| 6 | void b3 (void) { for (static int f;;); } // expected-error {{declaration of non-local variable}} |
| 7 | void b4 (void) { for (typedef int f;;); } // expected-error {{declaration of non-local variable}} |