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/p06 | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 testdata/p06 (limited to 'testdata/p06') diff --git a/testdata/p06 b/testdata/p06 new file mode 100644 index 0000000..88029cc --- /dev/null +++ b/testdata/p06 @@ -0,0 +1,7 @@ +func f(i int) { + if i < 2 { return } + println("i > 1:", i) +} + +f(1) +println("bye") -- cgit v1.2.3