summaryrefslogtreecommitdiff
path: root/testdata/p04
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2023-09-04 16:58:15 +0200
committerMarc Vertes <mvertes@free.fr>2023-09-04 16:58:15 +0200
commit4241593b42bffac2f8fcb63f1e88621fe025e360 (patch)
tree48680879982947524e1b028e179608bb5cbcda23 /testdata/p04
parent8feddd9b3eefb920c4a0c7a5b4c3b8ae160f3c71 (diff)
codegen: add interpreter tests
Also simplify project structure. The executable is now produced in the root directory. Work in progress.
Diffstat (limited to 'testdata/p04')
-rw-r--r--testdata/p044
1 files changed, 4 insertions, 0 deletions
diff --git a/testdata/p04 b/testdata/p04
new file mode 100644
index 0000000..f2a85c8
--- /dev/null
+++ b/testdata/p04
@@ -0,0 +1,4 @@
+func f() int { println(a) }
+
+a := 4
+f()