gcc/testsuite/gdc.test/fail_compilation/fail15896.d
raw| 1 | // REQUIRED_ARGS: -de |
| 2 | // EXTRA_FILES: imports/imp15896.d |
| 3 | /* |
| 4 | TEST_OUTPUT: |
| 5 | --- |
| 6 | fail_compilation/fail15896.d(11): Error: module `imports.imp15896` member `thebar` is not visible from module `fail15896` |
| 7 | fail_compilation/fail15896.d(11): Error: module `imports.imp15896` member `packagebar` is not visible from module `fail15896` |
| 8 | --- |
| 9 | */ |
| 10 | |
| 11 | import imports.imp15896 : thebar, packagebar; |
| 12 | |
| 13 | int func() |
| 14 | { |
| 15 | thebar +=1; |
| 16 | packagebar += 1; |
| 17 | thebar +=1; |
| 18 | return 0; |
| 19 | } |