Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail311.d(16): Error: undefined identifier `undefined`
5 fail_compilation/fail311.d(25): Error: template instance `fail311.foo!()` error instantiating
6 ---
7 */
8
9 template Tuple(T...)
10 {
11 alias T Tuple;
12 }
13
14 void foo()()
15 {
16 undefined x;
17 foreach (i; Tuple!(2))
18 {
19 static assert(true);
20 }
21 }
22
23 void main()
24 {
25 foo!()();
26 }