gcc/testsuite/gdc.test/fail_compilation/test13786.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/test13786.d(12): Error: debug `abc` declaration must be at module level |
| 5 | fail_compilation/test13786.d(13): Error: version `abc` declaration must be at module level |
| 6 | fail_compilation/test13786.d(16): Error: template instance `test13786.T!()` error instantiating |
| 7 | --- |
| 8 | */ |
| 9 | |
| 10 | template T() |
| 11 | { |
| 12 | debug = abc; |
| 13 | version = abc; |
| 14 | } |
| 15 | |
| 16 | alias X = T!(); |