Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-tag-5.c
blob97fcc75bc26b9fce1a33675e9997020b7f236af8
1 /* Test for handling of tags. "enum foo;" is invalid after an existing
2 declaration (does not redeclare the tag) as well as before: bug 107164. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c99 -pedantic" } */
6 enum e1; /* { dg-warning "ISO C forbids forward references to 'enum' types" } */
7 enum e2 { E };
8 enum e2; /* { dg-warning "empty declaration of 'enum' type does not redeclare tag" } */