tests for NLB and STP instructions

This commit is contained in:
Francesco Cozzuto
2023-01-23 13:28:32 +01:00
parent d786d7d1fd
commit 76bd70d833
2 changed files with 27 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
@type [runtime]
@bytecode
PUSHVAR "int";
NLB;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [?int]
+14
View File
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHVAR "int";
PUSHVAR "float";
STP;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [int | float]