aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-06 15:08:46 +0200
committerlemon <lsof@mailbox.org>2023-06-06 15:08:46 +0200
commit86625b1166bd39e28b4dd4995ed6cd88c0bdde7e (patch)
tree2bfd67ddc7e3b4bb4c4a3d951dfc80fac7c4bad3 /test
parent3388975ee3a0814e9c95863035ab0d122174c549 (diff)
codegen skeleton
Diffstat (limited to 'test')
-rw-r--r--test/hello.c4
-rw-r--r--test/test3.c9
2 files changed, 11 insertions, 2 deletions
diff --git a/test/hello.c b/test/hello.c
index 98a93a0..17affa8 100644
--- a/test/hello.c
+++ b/test/hello.c
@@ -1,5 +1,5 @@
int printf(const char *, ...);
-int main() {
- printf("hello world\n");
+int main(int argc) {
+ return 42;
}
diff --git a/test/test3.c b/test/test3.c
new file mode 100644
index 0000000..6940d1b
--- /dev/null
+++ b/test/test3.c
@@ -0,0 +1,9 @@
+/*
+int test1(int a, int b, int c) {
+ return a && b ? c - b ? c - b : a+b : 7;
+}
+*/
+
+int t(int *p, int i) {
+ return p[i];
+}