From 4241593b42bffac2f8fcb63f1e88621fe025e360 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Mon, 4 Sep 2023 16:58:15 +0200 Subject: codegen: add interpreter tests Also simplify project structure. The executable is now produced in the root directory. Work in progress. --- testdata/p07 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 testdata/p07 (limited to 'testdata/p07') diff --git a/testdata/p07 b/testdata/p07 new file mode 100644 index 0000000..2fa7ee0 --- /dev/null +++ b/testdata/p07 @@ -0,0 +1,5 @@ +func f1() { println("in f1") } + +func f2() { println("in f2"); f1() } + +f2() -- cgit v1.2.3