Debian Codegraph @

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

raw
1 /*
2 REQUIRED_ARGS: -w
3 TEST_OUTPUT:
4 ---
5 fail_compilation/test20522.d(19): Error: undefined identifier `non_existent`
6 ---
7 */
8
9 // https://issues.dlang.org/show_bug.cgi?id=20522
10 struct File
11 {
12 ~this() {}
13 }
14
15 void main()
16 {
17 {
18 auto test = File(); // <- Essential
19 non_existent;
20 }
21 // Warning: statement is not reachable
22 string[] is_this_unreachable_question_mark;
23 }