summaryrefslogtreecommitdiff
path: root/tests/cpu-program/cpu-hello-world.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpu-program/cpu-hello-world.slang')
-rw-r--r--tests/cpu-program/cpu-hello-world.slang9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/cpu-program/cpu-hello-world.slang b/tests/cpu-program/cpu-hello-world.slang
new file mode 100644
index 000000000..9385b239c
--- /dev/null
+++ b/tests/cpu-program/cpu-hello-world.slang
@@ -0,0 +1,9 @@
+//TEST:EXECUTABLE:
+__target_intrinsic(cpp, "printf(\"%s\\n\", ($0).getBuffer())")
+void writeln(String text);
+
+public __extern_cpp int main()
+{
+ writeln("Hello World.");
+ return 0;
+} \ No newline at end of file