gcc/testsuite/gdc.test/fail_compilation/fail21832.d
raw| 1 | // REQUIRED_ARGS: -de |
| 2 | // EXTRA_FILES: imports/imp21832.d |
| 3 | /* |
| 4 | TEST_OUTPUT: |
| 5 | --- |
| 6 | fail_compilation/fail21832.d(4): Deprecation: function `imports.imp21832.fun` is deprecated |
| 7 | fail_compilation/fail21832.d(10): Deprecation: template `imports.imp21832.tpl()(char a)` is deprecated |
| 8 | --- |
| 9 | */ |
| 10 | #line 1 |
| 11 | int test21832a() |
| 12 | { |
| 13 | import imports.imp21832 : fun; |
| 14 | return fun('a'); |
| 15 | } |
| 16 | |
| 17 | int test21832b() |
| 18 | { |
| 19 | import imports.imp21832 : tpl; |
| 20 | return tpl('a'); |
| 21 | } |