1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 08:27:03 +03:00
juvix/tests/Asm/negative/test001.jva
2022-09-29 17:44:55 +02:00

23 lines
202 B
Plaintext

-- division by zero
function f(integer) {
push 7;
push arg[0];
push 100;
div;
mul;
ret;
}
function g(*) {
push arg[0];
call f;
ret;
}
function main() {
push 0;
call g;
ret;
}