diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-09-18 12:19:13 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-09-18 12:19:13 +0200 |
| commit | dc9d03915c4b169fec749081b45d56f722105813 (patch) | |
| tree | 0a0719bc95f942b675fb52865d9c5bac9e105767 /testsuite/runnable/block_local_variable.elna | |
| parent | b575036fe804f14b78da74897a74b010cc94f730 (diff) | |
| download | elna-dc9d03915c4b169fec749081b45d56f722105813.tar.gz | |
Allow block-local variables
Diffstat (limited to 'testsuite/runnable/block_local_variable.elna')
| -rw-r--r-- | testsuite/runnable/block_local_variable.elna | 14 |
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. |
