aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/runnable')
-rw-r--r--testsuite/runnable/block_local_variable.elna14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/runnable/block_local_variable.elna b/testsuite/runnable/block_local_variable.elna
new file mode 100644
index 0000000..6287eec
--- /dev/null
+++ b/testsuite/runnable/block_local_variable.elna
@@ -0,0 +1,14 @@
+program()
+var
+ total: Int := 0
+begin
+ if total = 0 then
+ var
+ inner: Int := 7
+ begin
+ total := total + inner
+ end;
+ assert(total = 7)
+return 0u8
+
+end.