Files
Noja/tests/compiler/func/Testcase_012_000.noja-test

27 lines
310 B
Plaintext

@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;