Check switch block.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-04-10 20:01:17 +02:00
parent 0c2b2c9df5
commit 725b60cb88
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
2 changed files with 22 additions and 0 deletions

20
tests/switch_block.aer Normal file
View File

@ -0,0 +1,20 @@
class Program {
void main() {
int $a = 1;
switch($a) {
case 0:
print("very bad\n");
break;
case 1:
print("very good\n");
case 2:
print("good\n");
break;
default:
print("bad");
break;
}
}
}

2
tests/switch_block.exp Normal file
View File

@ -0,0 +1,2 @@
very good
good