mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-15 19:28:47 +00:00
still with bug (incorrect stack root)
This commit is contained in:
parent
de1823922a
commit
bff4ae225e
4 changed files with 128 additions and 17 deletions
9
runtime/testgc.expr
Normal file
9
runtime/testgc.expr
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
fun print_list (l) {
|
||||
case l of
|
||||
`nil -> skip
|
||||
| `cons (n, t) -> write (n); print_list (t)
|
||||
esac
|
||||
}
|
||||
|
||||
x := `cons (4, `cons(3, `cons(2 , `cons (1, `cons (0, `cons (1, `cons (2, `cons (3, `cons (4, `cons (5, `nil))))))))));
|
||||
print_list (x)
|
||||
Loading…
Add table
Add a link
Reference in a new issue