MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice9254b.d
blob04f28fd3997e22c2c7d3bd6bed4547d39ca9ed89
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 ---
13 class C
15 synchronized void foo()
17 foreach(divisor; !(2, 3, 4, 8, 7, 9))
19 // ice in ForeachRangeStatement::usesEH()
20 foreach (v; 0..uint.max) {}
22 // ice in WhileStatement::usesEH()
23 while (1) {}