mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
26 lines
874 B
D
26 lines
874 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice9254b.d(17): Error: using the result of a comma expression is not allowed
|
|
fail_compilation/ice9254b.d(17): Error: using the result of a comma expression is not allowed
|
|
fail_compilation/ice9254b.d(17): Error: using the result of a comma expression is not allowed
|
|
fail_compilation/ice9254b.d(17): Error: using the result of a comma expression is not allowed
|
|
fail_compilation/ice9254b.d(17): Error: using the result of a comma expression is not allowed
|
|
fail_compilation/ice9254b.d(17): Error: invalid `foreach` aggregate `false` of type `bool`
|
|
---
|
|
*/
|
|
|
|
class C
|
|
{
|
|
synchronized void foo()
|
|
{
|
|
foreach(divisor; !(2, 3, 4, 8, 7, 9))
|
|
{
|
|
// ice in ForeachRangeStatement::usesEH()
|
|
foreach (v; 0..uint.max) {}
|
|
|
|
// ice in WhileStatement::usesEH()
|
|
while (1) {}
|
|
}
|
|
}
|
|
}
|