blob: 4eeb9bea521768e58a6d092a4be0749e81d63e0c [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail11653.d(18): Error: switch case fallthrough - use 'goto case;' if intended
fail_compilation/fail11653.d(23): Error: switch case fallthrough - use 'goto default;' if intended
---
*/
void main()
{
int test = 12412;
int output = 0;
switch(test)
{
case 1:
output = 1;
//break; //Oops..
case 2: .. case 3:
output = 2;
break;
case 4:
output = 3;
default:
output = 4;
}
}