From 86625b1166bd39e28b4dd4995ed6cd88c0bdde7e Mon Sep 17 00:00:00 2001 From: lemon Date: Tue, 6 Jun 2023 15:08:46 +0200 Subject: codegen skeleton --- test/hello.c | 4 ++-- test/test3.c | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 test/test3.c (limited to 'test') 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]; +} -- cgit v1.2.3