Improved variable lifetime tracking
This commit is contained in:
parent
6e1af81733
commit
3fe2cd1da2
17 changed files with 114 additions and 31 deletions
|
@ -1,3 +1,8 @@
|
|||
main() {
|
||||
return 1+2*3
|
||||
x := f(2, 3)
|
||||
syscall(60, x)
|
||||
}
|
||||
|
||||
f(x, y) {
|
||||
return (x + y) * (x + y)
|
||||
}
|
|
@ -1,3 +1,4 @@
|
|||
main() {
|
||||
x := 123 +++ 456
|
||||
syscall(60, x)
|
||||
}
|
3
tests/errors/UnusedVariable.q
Normal file
3
tests/errors/UnusedVariable.q
Normal file
|
@ -0,0 +1,3 @@
|
|||
main() {
|
||||
x := 1
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue