mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
20 lines
285 B
D
20 lines
285 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail287.d(14): Error: had 300 cases which is more than 257 cases in case range
|
|
---
|
|
*/
|
|
|
|
|
|
void main()
|
|
{
|
|
int i = 2;
|
|
switch (i)
|
|
{
|
|
case 1: .. case 300:
|
|
i = 5;
|
|
break;
|
|
}
|
|
if (i != 5)
|
|
assert(0);
|
|
}
|