aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorCody <cody@codyq.dev>2023-06-07 03:28:40 -0500
committerCody <cody@codyq.dev>2023-06-07 03:28:40 -0500
commit6f6613419f1511c5637c9f69b3caa5ae838270b9 (patch)
treee203d6cdc0eb2140ae6f0a430e76f2992de66bec /test.c
parent25c5ccb29a6f2387a04bfb5d50874e00084c15d6 (diff)
downloadsloth-6f6613419f1511c5637c9f69b3caa5ae838270b9.tar.gz
Moving over from a VM interpreter to natively compiled w/ LLVM
Diffstat (limited to 'test.c')
-rw-r--r--test.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test.c b/test.c
new file mode 100644
index 0000000..3a39c44
--- /dev/null
+++ b/test.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+
+int add(int, int);
+int subtract(int, int);
+
+int main() {
+ int a = add(5, 2);
+ int b = subtract(3, 8);
+ printf("%d %d\n", a, b);
+ return 0;
+}