int main() {
int x, y;
switch(x) {
case 0:
break;
case 1:
if(y==5) {
default: // wtf. default inside if?
break; // it seems to work for every
// compiler I used
}
case 2:
break;
}
return 0;
}
I am stupid. I have read the C99 standard and THIS is the correct behaviour.
ReplyDeleteBut still pretty odd...