Fixed variable lifetime in loops

This commit is contained in:
Eduard Urbach 2024-07-16 20:22:28 +02:00
parent 43a6e85929
commit c2b42fe2ea
Signed by: eduard
GPG key ID: 49226B848C78F6C8
11 changed files with 90 additions and 18 deletions

11
tests/programs/loop.q Normal file
View file

@ -0,0 +1,11 @@
main() {
n := 10
loop {
if n == 0 {
return
}
n -= 1
}
}