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

int test21832b()
{
    import imports.imp21832 : tpl;
    return tpl('a');
}