aboutsummaryrefslogtreecommitdiffstats
path: root/test/LLVMC/hello.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/LLVMC/hello.m')
-rw-r--r--test/LLVMC/hello.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/LLVMC/hello.m b/test/LLVMC/hello.m
new file mode 100644
index 0000000..bf917bc
--- /dev/null
+++ b/test/LLVMC/hello.m
@@ -0,0 +1,12 @@
+/*
+ * Check that we can compile helloworld
+ * RUN: llvmc2 %s -o %t
+ * RUN: ./%t | grep hello
+ */
+
+#include <stdio.h>
+
+int main() {
+ printf("hello\n");
+ return 0;
+}