gcc/testsuite/gdc.test/fail_compilation/fail123.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/fail123.d(11): Error: undefined identifier `type` |
| 5 | fail_compilation/fail123.d(17): Error: enum `fail123.foo2` base type must not be `void` |
| 6 | --- |
| 7 | */ |
| 8 | |
| 9 | // https://issues.dlang.org/show_bug.cgi?id=355 |
| 10 | // ICE from enum : nonexistent type |
| 11 | enum foo : type |
| 12 | { |
| 13 | blah1, |
| 14 | blah2 |
| 15 | } |
| 16 | |
| 17 | enum foo2 : void { a, b } |