Simplified compilation of function calls
This commit is contained in:
parent
c777d73bbb
commit
225d78e2d8
14 changed files with 114 additions and 97 deletions
21
tests/programs/loop-in-loop.q
Normal file
21
tests/programs/loop-in-loop.q
Normal file
|
@ -0,0 +1,21 @@
|
|||
import sys
|
||||
|
||||
main() {
|
||||
x := 0
|
||||
|
||||
loop {
|
||||
for 0..10 {
|
||||
x += 1
|
||||
}
|
||||
|
||||
assert x == 10
|
||||
|
||||
loop {
|
||||
x -= 1
|
||||
|
||||
if x == 0 {
|
||||
sys.exit(0)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue