Fixed jump address calculation
This commit is contained in:
16
tests/programs/param-order.q
Normal file
16
tests/programs/param-order.q
Normal file
@ -0,0 +1,16 @@
|
||||
main() {
|
||||
f(1, 2, 3, 4, 5, 6)
|
||||
}
|
||||
|
||||
f(a, b, c, d, e, f) {
|
||||
return g(f, e, d, c, b, a)
|
||||
}
|
||||
|
||||
g(a, b, c, d, e, f) {
|
||||
assert a == 6
|
||||
assert b == 5
|
||||
assert c == 4
|
||||
assert d == 3
|
||||
assert e == 2
|
||||
assert f == 1
|
||||
}
|
Reference in New Issue
Block a user