gcc/testsuite/gdc.test/compilable/test16085.d
raw| 1 | // REQUIRED_ARGS: -de |
| 2 | // EXTRA_FILES: imports/imp16085.d imports/imp16085b.d |
| 3 | // PERMUTE_ARGS: |
| 4 | import imports.imp16085; |
| 5 | |
| 6 | void test() |
| 7 | { |
| 8 | S s; |
| 9 | assert(s.functionAndFunction() == Pass()); |
| 10 | assert(s.staticFunctionAndFunction() == Pass()); |
| 11 | // assert(S.staticFunctionAndFunction() == Pass()); // erroneous not accessible error |
| 12 | assert(s.functionAndTemplate() == Pass()); |
| 13 | assert(s.templateAndTemplate() == Pass()); |
| 14 | } |