for.c revision d7d5f0223bd30dfd618762349c6209dd1d5ea3e6
1// RUN: clang-cc -fsyntax-only -verify %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}} 8