aboutsummaryrefslogtreecommitdiff
path: root/tests/hello_world.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-11 15:24:04 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-11 15:24:04 -0800
commitd13c1e87d550cb11b3502c10022039a41ac6ab10 (patch)
tree98edcb421c5cb49bc21a2cc206b9cc71cf29c973 /tests/hello_world.cpp
parent4191d90052d145d1a98c95d912b0965b0e1be5a7 (diff)
refactor temp files handling code, and first passing compilation test for emcc
Diffstat (limited to 'tests/hello_world.cpp')
-rw-r--r--tests/hello_world.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/hello_world.cpp b/tests/hello_world.cpp
new file mode 100644
index 00000000..441d892b
--- /dev/null
+++ b/tests/hello_world.cpp
@@ -0,0 +1,9 @@
+#include<stdio.h>
+
+class Test {}; // This will fail in C mode
+
+int main() {
+ printf("hello, world!\n");
+ return 1;
+}
+