gcc/testsuite/gdc.test/fail_compilation/diag19225.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/diag19225.d(14): Error: basic type expected, not `else` |
| 5 | fail_compilation/diag19225.d(14): There's no `static else`, use `else` instead. |
| 6 | fail_compilation/diag19225.d(14): Error: found `else` without a corresponding `if`, `version` or `debug` statement |
| 7 | fail_compilation/diag19225.d(15): Error: unmatched closing brace |
| 8 | --- |
| 9 | */ |
| 10 | |
| 11 | void main() |
| 12 | { |
| 13 | static if (true) {} |
| 14 | static else {} |
| 15 | } |