summaryrefslogtreecommitdiff
path: root/testdata/add
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/add
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/add')
-rw-r--r--testdata/add2
1 files changed, 2 insertions, 0 deletions
diff --git a/testdata/add b/testdata/add
new file mode 100644
index 0000000..a403485
--- /dev/null
+++ b/testdata/add
@@ -0,0 +1,2 @@
+func add(a int, b int) int { return a + b }
+add(4, 3)