tests for NLB and STP instructions
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
@type [runtime]
|
||||
|
||||
@bytecode
|
||||
|
||||
PUSHVAR "int";
|
||||
NLB;
|
||||
|
||||
PUSHVAR "print";
|
||||
CALL 1, 1;
|
||||
POP 1;
|
||||
EXIT;
|
||||
|
||||
@output [?int]
|
||||
@@ -0,0 +1,14 @@
|
||||
@type [runtime]
|
||||
|
||||
@bytecode
|
||||
|
||||
PUSHVAR "int";
|
||||
PUSHVAR "float";
|
||||
STP;
|
||||
|
||||
PUSHVAR "print";
|
||||
CALL 1, 1;
|
||||
POP 1;
|
||||
EXIT;
|
||||
|
||||
@output [int | float]
|
||||
Reference in New Issue
Block a user