summaryrefslogtreecommitdiff
path: root/tests/projects
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects')
-rw-r--r--tests/projects/swift/cross_modules/src/A.swift4
-rw-r--r--tests/projects/swift/cross_modules/src/main.swift2
-rw-r--r--tests/projects/swift/cross_modules/xmake.lua5
3 files changed, 11 insertions, 0 deletions
diff --git a/tests/projects/swift/cross_modules/src/A.swift b/tests/projects/swift/cross_modules/src/A.swift
new file mode 100644
index 000000000..746d33dcd
--- /dev/null
+++ b/tests/projects/swift/cross_modules/src/A.swift
@@ -0,0 +1,4 @@
+
+func test() {
+ print("xxxxx")
+}
diff --git a/tests/projects/swift/cross_modules/src/main.swift b/tests/projects/swift/cross_modules/src/main.swift
new file mode 100644
index 000000000..93f0bf310
--- /dev/null
+++ b/tests/projects/swift/cross_modules/src/main.swift
@@ -0,0 +1,2 @@
+
+test()
diff --git a/tests/projects/swift/cross_modules/xmake.lua b/tests/projects/swift/cross_modules/xmake.lua
new file mode 100644
index 000000000..3accaf54e
--- /dev/null
+++ b/tests/projects/swift/cross_modules/xmake.lua
@@ -0,0 +1,5 @@
+add_rules("mode.debug", "mode.release")
+
+target("test")
+ set_kind("binary")
+ add_files("src/*.swift")