Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/test20515.d

raw
1 // REQUIRED_ARGS: -verror-style=gnu
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/test20515.d:16: Deprecation: function `test20515.foo` is deprecated
6 fail_compilation/test20515.d:17: Error: undefined identifier `bar`
7 ---
8 */
9
10 module test20515;
11
12 deprecated void foo() { }
13
14 void test()
15 {
16 foo;
17 bar;
18 }