summaryrefslogtreecommitdiff
path: root/tests/console/src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/console/src')
-rw-r--r--tests/console/src/demo/demo.swift2
-rw-r--r--tests/console/src/demo/xmake.lua4
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/console/src/demo/demo.swift b/tests/console/src/demo/demo.swift
new file mode 100644
index 000000000..81bc4f351
--- /dev/null
+++ b/tests/console/src/demo/demo.swift
@@ -0,0 +1,2 @@
+
+print("hello world!")
diff --git a/tests/console/src/demo/xmake.lua b/tests/console/src/demo/xmake.lua
index 81f9ebafd..f304aa255 100644
--- a/tests/console/src/demo/xmake.lua
+++ b/tests/console/src/demo/xmake.lua
@@ -51,3 +51,7 @@ add_target("demo_cpp")
add_ldflags("-framework Cocoa", "-framework IOKit", "-framework CoreFoundation")
end
end
+
+add_target("demo_swift")
+ set_kind("binary")
+ add_files("*.swift")