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

16 lines
288 B
Text

// switch06
//
const CVAL := 4;
function foo( p )
case (p)
CVAL: return "[CVAL]";
5: return "five";
"fourteen": return 14;
"thirteen": return 13;
default: return "NOTA: " + p;
endcase
endfunction
print( foo( CVAL ) );
print( foo( 1 ) );