libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / c11-enum-6.c
bloba7201103325ae1df572cf2ae37e890eb01234722
1 /* Test C23 enumerations with fixed underlying type are not diagnosed for C11
2 with -pedantic-errors -Wno-c11-c23-compat. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c11 -pedantic-errors -Wno-c11-c23-compat" } */
6 enum e1 : int;
7 enum e2 : short { A };
8 enum : short { B };