diff options
| author | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-02-22 21:19:29 +0100 |
|---|---|---|
| committer | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-02-22 21:19:29 +0100 |
| commit | 8e001b54fb2f74e4e68ea2c75ab0be8db5ea9de5 (patch) | |
| tree | 44379b398fabce3f2b1ba3a7c84ee909c724c6e2 /progs | |
| parent | 40f2c2cabfdfbace9bc9116be7228b2db9348c13 (diff) | |
| download | sylt-8e001b54fb2f74e4e68ea2c75ab0be8db5ea9de5.tar.gz | |
fix all the tests that had unused variables
Diffstat (limited to 'progs')
| -rw-r--r-- | progs/tests/scoping.sy | 1 | ||||
| -rw-r--r-- | progs/tests/simple.sy | 14 |
2 files changed, 10 insertions, 5 deletions
diff --git a/progs/tests/scoping.sy b/progs/tests/scoping.sy index 7679948..f8e0b00 100644 --- a/progs/tests/scoping.sy +++ b/progs/tests/scoping.sy @@ -9,5 +9,6 @@ a <=> 1 { a = 2 a : int = 1 + a } a <=> 2 diff --git a/progs/tests/simple.sy b/progs/tests/simple.sy index 42b9ac2..0f69ae2 100644 --- a/progs/tests/simple.sy +++ b/progs/tests/simple.sy @@ -1,7 +1,11 @@ -a :: 1 -a <=> 1 -b := 2 +a := 0 { - a <=> 1 - b <=> 2 + b := 99999 + { + a := 99999 + a + } + b + a -= 1 } +a <=> -1 |
