]>
Commit | Line | Data |
---|---|---|
e0997c14 JM |
1 | /* Test C2x enumerations with fixed underlying type are diagnosed for C11. */ |
2 | /* { dg-do compile } */ | |
3 | /* { dg-options "-std=c11 -pedantic" } */ | |
4 | ||
5 | enum e1 : int; /* { dg-warning "ISO C does not support specifying 'enum' underlying types" } */ | |
6 | enum e2 : short { A }; /* { dg-warning "ISO C does not support specifying 'enum' underlying types" } */ | |
7 | enum : short { B }; /* { dg-warning "ISO C does not support specifying 'enum' underlying types" } */ |