1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 17:32:00 +03:00
juvix/tests/Asm/negative/test001.jva

23 lines
202 B
Plaintext
Raw Normal View History

2022-09-29 18:44:55 +03:00
-- 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;
}