for.c 411 B

1234567
  1. // RUN: %clang_cc1 -fsyntax-only -verify %s
  2. // Check C99 6.8.5p3
  3. void b1 (void) { for (void (*f) (void);;); }
  4. void b2 (void) { for (void f (void);;); } // expected-error {{declaration of non-local variable}}
  5. void b3 (void) { for (static int f;;); } // expected-error {{declaration of non-local variable}}
  6. void b4 (void) { for (typedef int f;;); } // expected-error {{declaration of non-local variable}}