blob: dc83e5d322874926542f1841607aea11db69b4e6 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail73.d(20): Error: case not in switch statement
---
*/
// segfault DMD 0.120
// http://www.digitalmars.com/d/archives/digitalmars/D/bugs/4634.html
void main()
{
int u=2;
switch(u)
{
case 1:
void j()
{
case 2:
u++;
}
break;
default:
break;
}
}