summaryrefslogtreecommitdiff
path: root/tests/cpu-program/cpu-hello-world-test.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpu-program/cpu-hello-world-test.slang')
-rw-r--r--tests/cpu-program/cpu-hello-world-test.slang7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/cpu-program/cpu-hello-world-test.slang b/tests/cpu-program/cpu-hello-world-test.slang
new file mode 100644
index 000000000..a44761e8f
--- /dev/null
+++ b/tests/cpu-program/cpu-hello-world-test.slang
@@ -0,0 +1,7 @@
+//TEST:EXECUTABLE:
+
+export __extern_cpp int main()
+{
+ printf("Hello World.\n");
+ return 0;
+}