2 /* { dg-do compile } */
3 /* { dg-options "" } */
8 for (typedef int T
;;) /* { dg-error "declaration of non-variable" } */
11 T x
; /* { dg-error "unknown type name" } */
17 for (typedef int T
;;) /* { dg-error "declaration of non-variable" } */
20 T x
; /* { dg-error "unknown type name" } */
26 for (typedef int T
;;) /* { dg-error "declaration of non-variable" } */
30 T
*x
; /* { dg-error "unknown type name" } */
36 for (typedef int T
;;) /* { dg-error "declaration of non-variable" } */
39 T
, T
; /* { dg-error "undeclared" } */
45 for (typedef int T
;;) /* { dg-error "declaration of non-variable" } */
48 T
= 10; /* { dg-error "undeclared" } */
54 for (typedef int T
;;) /* { dg-error "declaration of non-variable" } */
57 T
[0]; /* { dg-error "undeclared" } */
63 for (typedef int T
;;) /* { dg-error "declaration of non-variable" } */
66 T (); /* { dg-warning "implicit declaration" } */