libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / c23-enum-10.c
blobdd5f3453b1f313d5c22b0afbb9e3fb291b0d2d99
1 /* PR c/112571. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c23" } */
5 enum X : typeof (enum X { A }); /* { dg-error "declared with but defined without fixed underlying type" } */
6 /* { dg-error "invalid 'enum' underlying type" "invalid" { target *-*-* } .-1 } */