1 /* Test that "typeof(struct foo)" and similar as declaration
2 specifiers act like typedef. */
3 /* Origin: Joseph Myers <jsm@polyomino.org.uk> */
4 /* { dg-do compile } */
5 /* { dg-options "" } */
7 typeof(struct foo); /* { dg-warning "warning: useless type name in empty declaration" } */
9 struct bar { int a; } x;
11 typeof(x); /* { dg-warning "warning: useless type name in empty declaration" } */