Tighten condition in vect/pr85586.c (PR 85654)
[official-gcc.git] / gcc / testsuite / gcc.dg / declspec-14.c
blobd8ec78c9cebc368f5af576693d17eecbf801d308
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 "useless type name in empty declaration" } */
9 struct bar { int a; } x;
11 typeof(x); /* { dg-warning "useless type name in empty declaration" } */