gcc/testsuite/gdc.test/fail_compilation/diag11198.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/diag11198.d(13): Error: version `blah` declaration must be at module level |
| 5 | fail_compilation/diag11198.d(14): Error: debug `blah` declaration must be at module level |
| 6 | fail_compilation/diag11198.d(15): Error: identifier expected, not `""` |
| 7 | fail_compilation/diag11198.d(16): Error: identifier expected, not `""` |
| 8 | --- |
| 9 | */ |
| 10 | |
| 11 | void main() |
| 12 | { |
| 13 | version = blah; |
| 14 | debug = blah; |
| 15 | version = ""; |
| 16 | debug = ""; |
| 17 | } |