libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-tag-6.c
blob8307217523c615817b544cc218237bd0acd550e8
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 Test this is not diagnosed without -pedantic. */
4 /* { dg-do compile } */
5 /* { dg-options "-std=c99" } */
7 enum e1;
8 enum e2 { E };
9 enum e2;