summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/test20515.d
blob: cf4bbde58d93b27604ee81c2b2108f24f9568ace (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// REQUIRED_ARGS: -verror-style=gnu
/*
TEST_OUTPUT:
---
fail_compilation/test20515.d:16: Deprecation: function `test20515.foo` is deprecated
fail_compilation/test20515.d:17: Error: undefined identifier `bar`
---
*/

module test20515;

deprecated void foo() { }

void test()
{
    foo;
    bar;
}