From dc9d03915c4b169fec749081b45d56f722105813 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 18 Sep 2026 12:19:13 +0200 Subject: Allow block-local variables --- testsuite/runnable/block_local_variable.elna | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 testsuite/runnable/block_local_variable.elna (limited to 'testsuite/runnable') 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. -- cgit v1.2.3