new testing infrastructure
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
|
||||
@type [compiler]
|
||||
@source
|
||||
|
||||
fun nop(a = 1)
|
||||
{}
|
||||
|
||||
@bytecode
|
||||
|
||||
PUSHFUN nop, 1, "nop";
|
||||
JUMP nop_end;
|
||||
nop:
|
||||
PUSHTYP;
|
||||
PUSHNNETYP;
|
||||
EQL;
|
||||
JUMPIFNOTANDPOP not_none;
|
||||
POP 1;
|
||||
PUSHINT 1;
|
||||
not_none:
|
||||
ASS "a";
|
||||
POP 1;
|
||||
RETURN 0;
|
||||
nop_end:
|
||||
ASS "nop";
|
||||
POP 1;
|
||||
EXIT;
|
||||
Reference in New Issue
Block a user