Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice9254b.d(17): Error: using the result of a comma expression is not allowed
5 fail_compilation/ice9254b.d(17): Error: using the result of a comma expression is not allowed
6 fail_compilation/ice9254b.d(17): Error: using the result of a comma expression is not allowed
7 fail_compilation/ice9254b.d(17): Error: using the result of a comma expression is not allowed
8 fail_compilation/ice9254b.d(17): Error: using the result of a comma expression is not allowed
9 fail_compilation/ice9254b.d(17): Error: invalid `foreach` aggregate `false` of type `bool`
10 ---
11 */
12
13 class C
14 {
15 synchronized void foo()
16 {
17 foreach(divisor; !(2, 3, 4, 8, 7, 9))
18 {
19 // ice in ForeachRangeStatement::usesEH()
20 foreach (v; 0..uint.max) {}
21
22 // ice in WhileStatement::usesEH()
23 while (1) {}
24 }
25 }
26 }