summaryrefslogtreecommitdiff
path: root/testdata/p07
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/p07
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/p07')
-rw-r--r--testdata/p075
1 files changed, 5 insertions, 0 deletions
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()