1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-15 10:03:22 +03:00
juvix/tests/Asm/negative/test002.jva

17 lines
181 B
Plaintext

-- invalid memory access
type list {
nil : list;
cons : * -> list -> list;
}
function hd(list) {
push arg[0].cons[0];
ret;
}
function main() {
alloc nil;
tcall hd;
}