From 1ec34678308709f7f6103bd4d67347ad859479c8 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Thu, 14 Nov 2024 19:55:30 +0100 Subject: Map local variables in IR to their original names --- tests/expectations/add_to_variable.txt | 1 + tests/vm/add_to_variable.elna | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 tests/expectations/add_to_variable.txt create mode 100644 tests/vm/add_to_variable.elna (limited to 'tests') diff --git a/tests/expectations/add_to_variable.txt b/tests/expectations/add_to_variable.txt new file mode 100644 index 0000000..8c61d23 --- /dev/null +++ b/tests/expectations/add_to_variable.txt @@ -0,0 +1 @@ +58 diff --git a/tests/vm/add_to_variable.elna b/tests/vm/add_to_variable.elna new file mode 100644 index 0000000..cbcfc8e --- /dev/null +++ b/tests/vm/add_to_variable.elna @@ -0,0 +1,6 @@ +proc main() { + var i: int; + i := 28; + + printi(i + 30); +} -- cgit v1.2.3