| 1 |
/* Test C23 enumerations with fixed underlying type are not diagnosed for C11 |
| 2 |
with -pedantic-errors -Wno-c11-c23-compat. */ |
| 3 |
/* { dg-do compile } */ |
| 4 |
/* { dg-options "-std=c11 -pedantic-errors -Wno-c11-c23-compat" } */ |
| 5 |
|
| 6 |
enum e1 : int; |
| 7 |
enum e2 : short { A }; |
| 8 |
enum : short { B }; |