mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
23 lines
817 B
D
23 lines
817 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice9254a.d(15): Error: using the result of a comma expression is not allowed
|
|
fail_compilation/ice9254a.d(15): Error: using the result of a comma expression is not allowed
|
|
fail_compilation/ice9254a.d(15): Error: using the result of a comma expression is not allowed
|
|
fail_compilation/ice9254a.d(15): Error: using the result of a comma expression is not allowed
|
|
fail_compilation/ice9254a.d(15): Error: using the result of a comma expression is not allowed
|
|
fail_compilation/ice9254a.d(15): Error: invalid `foreach` aggregate `false` of type `bool`
|
|
---
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
foreach (divisor; !(2, 3, 4, 8, 7, 9))
|
|
{
|
|
// ice in ForeachRangeStatement::blockExit()
|
|
foreach (v; 0..uint.max) {}
|
|
|
|
// ice in WhileStatement::blockExit()
|
|
while (1) {}
|
|
}
|
|
}
|