From 0c9799b887e967a55857377dad0d64ad625b47c9 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Wed, 20 Nov 2024 17:38:03 +0100 Subject: Adjust stack size based on local variables --- tests/expectations/two_variables.txt | 2 ++ tests/vm/two_variables.elna | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/expectations/two_variables.txt create mode 100644 tests/vm/two_variables.elna (limited to 'tests') diff --git a/tests/expectations/two_variables.txt b/tests/expectations/two_variables.txt new file mode 100644 index 0000000..d763264 --- /dev/null +++ b/tests/expectations/two_variables.txt @@ -0,0 +1,2 @@ +58 +28 diff --git a/tests/vm/two_variables.elna b/tests/vm/two_variables.elna new file mode 100644 index 0000000..c129efa --- /dev/null +++ b/tests/vm/two_variables.elna @@ -0,0 +1,10 @@ +proc main() { + var i: int; + var j: int; + + i := 58; + j := 28; + + printi(i); + printi(j); +} -- cgit v1.2.3