Debian Codegraph @

gcc/testsuite/gcc.dg/c11-enum-6.c

raw
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" } */
5
6 enum e1 : int;
7 enum e2 : short { A };
8 enum : short { B };