blob: a19b9de37713166568edf2f82dc0c4b4320b2604 [file] [log] [blame]
/* Test that "typeof(struct foo)" and similar as declaration
specifiers act like typedef. */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* { dg-options "" } */
typeof(struct foo); /* { dg-warning "warning: useless type name in empty declaration" } */
struct bar { int a; } x;
typeof(x); /* { dg-warning "warning: useless type name in empty declaration" } */