Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/enum9921.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/enum9921.d(9): Error: enum `enum9921.X` base type must not be `void`
5 fail_compilation/enum9921.d(11): Error: enum `enum9921.Z` base type must not be `void`
6 fail_compilation/enum9921.d(13): Error: variable `enum9921.x` - manifest constants must have initializers
7 ---
8 */
9 enum X : void;
10
11 enum Z : void { Y };
12
13 enum int x;