diff options
| author | Eugen Wissner <belka@caraus.de> | 2024-11-20 17:38:03 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2024-11-20 17:38:03 +0100 |
| commit | 0c9799b887e967a55857377dad0d64ad625b47c9 (patch) | |
| tree | 6fb3e9615b09af25afbf09a7b2f4793abb5221bb /tests | |
| parent | 276d4c963b1db81af2dfc158b438070fbaa3d0f1 (diff) | |
| download | elna-0c9799b887e967a55857377dad0d64ad625b47c9.tar.gz | |
Adjust stack size based on local variables
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/expectations/two_variables.txt | 2 | ||||
| -rw-r--r-- | tests/vm/two_variables.elna | 10 |
2 files changed, 12 insertions, 0 deletions
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); +} |
