Debian Codegraph @

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

raw
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/test3818.d(104): Error: missing `; expression` before `)` of `foreach`
4 fail_compilation/test3818.d(104): perhaps the `;` goes before `a`
5 fail_compilation/test3818.d(109): Error: missing `; expression` before `)` of `foreach`
6 fail_compilation/test3818.d(109): perhaps the `;` goes before `c`
7 fail_compilation/test3818.d(110): Error: declaration expected, not `{`
8 ---
9 */
10
11 // https://issues.dlang.org/show_bug.cgi?id=3818
12
13 #line 100
14
15 void test1()
16 {
17 int[10] a;
18 foreach (i, x, a)
19 {
20 }
21 }
22
23 static foreach (a, b, c)
24 {
25 }