mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
22 lines
305 B
D
22 lines
305 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail15535.d(17): Error: `goto default` not allowed in `final switch` statement
|
|
---
|
|
*/
|
|
|
|
void test()
|
|
{
|
|
int i;
|
|
switch (i)
|
|
{
|
|
case 0:
|
|
final switch (i)
|
|
{
|
|
case 1:
|
|
goto default;
|
|
}
|
|
default:
|
|
break;
|
|
}
|
|
}
|