aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/runnable')
-rw-r--r--testsuite/runnable/inferred_variable.elna6
1 files changed, 5 insertions, 1 deletions
diff --git a/testsuite/runnable/inferred_variable.elna b/testsuite/runnable/inferred_variable.elna
index e0822b8..48d7414 100644
--- a/testsuite/runnable/inferred_variable.elna
+++ b/testsuite/runnable/inferred_variable.elna
@@ -2,8 +2,12 @@ program()
var
x := 42
c: const := 10
+ y := c
+ arr := [c, 2]
begin
x := x + 1;
- assert(x = 43 & c = 10)
+ y := y + 5;
+ arr[1] := 99;
+ assert(x = 43 & c = 10 & y = 15 & arr[1] = 99 & arr[2] = 2)
end.