new testing infrastructure
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
|
||||
@type [compiler]
|
||||
@source
|
||||
|
||||
fun nop(a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
@bytecode
|
||||
|
||||
PUSHFUN fun, 1, "nop";
|
||||
JUMP end;
|
||||
fun:
|
||||
ASS "a";
|
||||
POP 1;
|
||||
PUSHVAR "a";
|
||||
RETURN 1;
|
||||
RETURN 0;
|
||||
end:
|
||||
ASS "nop";
|
||||
POP 1;
|
||||
EXIT;
|
||||
Reference in New Issue
Block a user