gcc/testsuite/gdc.test/fail_compilation/test15925.d
raw| 1 | /* |
| 2 | EXTRA_FILES: imports/imp15925.d |
| 3 | TEST_OUTPUT: |
| 4 | --- |
| 5 | fail_compilation/test15925.d(18): Error: undefined identifier `X` |
| 6 | fail_compilation/test15925.d(18): while evaluating: `static assert(X == 1)` |
| 7 | --- |
| 8 | */ |
| 9 | |
| 10 | mixin template Import() |
| 11 | { |
| 12 | import imports.imp15925; |
| 13 | } |
| 14 | |
| 15 | class Foo |
| 16 | { |
| 17 | mixin Import!(); |
| 18 | static assert(X == 1); |
| 19 | } |