Debian Codegraph @

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

raw
1 // REQUIRED_ARGS: -de
2 // https://issues.dlang.org/show_bug.cgi?id=143
3 // EXTRA_FILES: imports/test143.d
4 /*
5 TEST_OUTPUT:
6 ---
7 fail_compilation/test143.d(20): Error: undefined identifier `x`
8 ---
9 */
10 module test143;
11
12 import imports.test143;
13
14 void bar(int)
15 {
16 }
17
18 void foo()
19 {
20 bar(x);
21 }