updated compiler testcases

This commit is contained in:
cozis
2022-12-07 18:45:22 +01:00
parent 98374ee491
commit 60c2d3ea88
6 changed files with 10 additions and 107 deletions
+1 -11
View File
@@ -14,18 +14,8 @@
fun:
ASS "b";
POP 1;
PUSHTYP;
PUSHVAR "int";
PUSHTYP;
PUSHTYPTYP;
EQL;
JUMPIFNOTANDPOP arg0_annot0_bad;
EQL;
JUMPIFANDPOP arg_ok;
ERROR "Bad type for argument 0";
arg0_annot0_bad:
ERROR "Argument 0 type annotation 0 is not a type";
arg_ok:
CHECKTYPE 0, "a";
ASS "a";
POP 1;
PUSHVAR "a";