aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
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];
+}