polserver/testsuite/escript/switch/switch12.src
turleypol fd1dcb6512 switch tests where never executed :(
fixed unaligned load for switch statements
2018-06-03 21:54:16 +02:00

19 lines
No EOL
388 B
Text

// switch06
//
var a array;
a[1] := "hello";
a[2] := "world";
a[3] := "again";
a[4] := "there";
foreach elem in a
case( elem )
"world": continue; // this should continue the FOREACH
"again": break; // this should exit the CASE
default: print( "case element: " + elem );
endcase
print( "element: " + elem );
endforeach
print( "done" );