Add support of 'default' clause in 'switch' statement

This commit is contained in:
Ilmir Usmanov
2014-10-13 16:28:36 +04:00
parent 9f6ebb310b
commit c33afca360
3 changed files with 77 additions and 11 deletions
+9 -3
View File
@@ -30,8 +30,6 @@ switch (a) {
assert (0);
}
// TODO: Uncomment when default will be supported
/*
switch (a) {
default:
assert (0);
@@ -40,4 +38,12 @@ switch (a) {
case 2:
case 3:
assert (0);
}*/
}
switch (a) {
default:
break;
case 2:
case 3:
assert (0);
}