gcc/testsuite/gdc.test/fail_compilation/ice24188.d
raw| 1 | /* |
| 2 | REQUIRED_ARGS: fail_compilation/ice24188_a/ice24188_c.d |
| 3 | TEST_OUTPUT: |
| 4 | --- |
| 5 | fail_compilation/ice24188.d(9): Error: module `ice24188_c` from file fail_compilation/ice24188_a/ice24188_c.d must be imported with 'import ice24188_c;' |
| 6 | --- |
| 7 | */ |
| 8 | auto b() { |
| 9 | import fail_compilation.ice24188_a.ice24188_c : D; |
| 10 | |
| 11 | struct A { |
| 12 | D e; |
| 13 | } |
| 14 | } |