Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail251.d(12): Error: undefined identifier `xs`
5 fail_compilation/fail251.d(16): called from here: `foo()`
6 fail_compilation/fail251.d(16): while evaluating: `static assert(foo())`
7 ---
8 */
9
10 bool foo()
11 {
12 foreach (x; xs) {}
13 return true;
14 }
15
16 static assert(foo());