Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / c2x-enum-8.c
blobf7757fc3326689d38de0fbc64df33d8bc24024b4
1 /* Test C2x enumerations with fixed underlying type. Test -Wc11-c2x-compat
2 warnings. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c2x -pedantic-errors -Wc11-c2x-compat" } */
6 enum e1 : int; /* { dg-warning "ISO C does not support specifying 'enum' underlying types before" } */
7 enum e2 : short { E2 }; /* { dg-warning "ISO C does not support specifying 'enum' underlying types before" } */