Improved variable lifetime tracking
This commit is contained in:
@ -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
|
||||
}
|
Reference in New Issue
Block a user