gcc/testsuite/gdc.test/fail_compilation/diag13609a.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/diag13609a.d(16): Error: `}` expected following members in `struct` declaration |
| 5 | fail_compilation/diag13609a.d(15): struct starts here |
| 6 | fail_compilation/diag13609a.d(16): Error: `}` expected following members in `class` declaration |
| 7 | fail_compilation/diag13609a.d(11): class `C` starts here |
| 8 | --- |
| 9 | */ |
| 10 | |
| 11 | class C |
| 12 | { |
| 13 | void foo() {} |
| 14 | |
| 15 | struct { |