summaryrefslogtreecommitdiffstats
path: root/tests/cpp-compiler
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpp-compiler')
-rw-r--r--tests/cpp-compiler/simple-c-compile.c10
-rw-r--r--tests/cpp-compiler/simple-c-compile.c.expected6
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/cpp-compiler/simple-c-compile.c b/tests/cpp-compiler/simple-c-compile.c
new file mode 100644
index 000000000..32b5561f1
--- /dev/null
+++ b/tests/cpp-compiler/simple-c-compile.c
@@ -0,0 +1,10 @@
+//TEST:SIMPLE: -entry main -target exe -pass-through c
+
+#include <stdlib.h>
+#include <stdio.h>
+
+int main(int argc, char** argv)
+{
+ printf("Hello World!\n");
+ return 0;
+}
diff --git a/tests/cpp-compiler/simple-c-compile.c.expected b/tests/cpp-compiler/simple-c-compile.c.expected
new file mode 100644
index 000000000..0e042b53b
--- /dev/null
+++ b/tests/cpp-compiler/simple-c-compile.c.expected
@@ -0,0 +1,6 @@
+result code = 0
+standard error = {
+}
+standard output = {
+Hello World!
+}