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 } */