libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / c23-tag-enum-2.c
blob2bf7255b8441c0853a0c7577903dae5bb7e3331b
1 /*
2 * { dg-do compile }
3 * { dg-options "-std=c23" }
4 */
6 enum A { B = 7 } y;
8 // complete during later construction
10 enum A { B = _Generic(&y, enum A*: 7, default: 1) };
13 enum X { E = 1, F = 1 + 1 };
14 enum X { F = 2, E = 1 };