gcc/testsuite/gdc.test/fail_compilation/ice13131.d
raw| 1 | // EXTRA_SOURCES: imports/a13131parameters.d imports/a13131elec.d |
| 2 | // EXTRA_FILES: imports/a13131checkpoint.d |
| 3 | /* |
| 4 | TEST_OUTPUT: |
| 5 | --- |
| 6 | +A |
| 7 | +B |
| 8 | fail_compilation/imports/a13131elec.d(10): Error: template instance `elecConnOf!gconn` template `elecConnOf` is not defined |
| 9 | -B |
| 10 | -A |
| 11 | --- |
| 12 | */ |
| 13 | |
| 14 | void main() |
| 15 | { |
| 16 | struct Connectivity {} |
| 17 | auto L = Connectivity(); |
| 18 | |
| 19 | import imports.a13131elec; // [1] import |
| 20 | L.initElec; |
| 21 | } |