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