summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-03-29 14:40:59 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-29 14:40:59 (GMT)
commit6ca509e7c65a94f4b486bacef766bac717f5308f (patch)
tree37a52f9fcfbf5ab98d3848ef65062689064a3ac3 /Tests
parentd4a995750a1e3101f943a0d2e91fc9688f5e23f7 (diff)
parent77139e320c8ec7f92e1298cc57fea7276faceb12 (diff)
downloadCMake-6ca509e7c65a94f4b486bacef766bac717f5308f.zip
CMake-6ca509e7c65a94f4b486bacef766bac717f5308f.tar.gz
CMake-6ca509e7c65a94f4b486bacef766bac717f5308f.tar.bz2
Merge branch '16742-swift-3.0' into release
Diffstat (limited to 'Tests')
-rw-r--r--Tests/SwiftMix/ObjCMain.m2
-rw-r--r--Tests/SwiftMix/SwiftMain.swift8
2 files changed, 3 insertions, 7 deletions
diff --git a/Tests/SwiftMix/ObjCMain.m b/Tests/SwiftMix/ObjCMain.m
index 7fa90ae..20f0bf1 100644
--- a/Tests/SwiftMix/ObjCMain.m
+++ b/Tests/SwiftMix/ObjCMain.m
@@ -1,4 +1,4 @@
#import "SwiftMix-Swift.h"
int ObjCMain(int argc, char const* const argv[]) {
- return [SwiftMainClass SwiftMain:argc argv:argv];
+ return [SwiftMainClass SwiftMain];
}
diff --git a/Tests/SwiftMix/SwiftMain.swift b/Tests/SwiftMix/SwiftMain.swift
index 3629ac8..a4a0a62 100644
--- a/Tests/SwiftMix/SwiftMain.swift
+++ b/Tests/SwiftMix/SwiftMain.swift
@@ -1,12 +1,8 @@
import Foundation
@objc class SwiftMainClass : NSObject {
- class func SwiftMain(argc:Int, argv:UnsafePointer<UnsafePointer<CChar>>) -> Int32 {
- dump("argc: \(argc)")
- for (var i = 0; i < argc; ++i) {
- let argi = String.fromCString(argv[i])
- dump("arg[\(i)]: \(argi)");
- }
+ class func SwiftMain() -> Int32 {
+ dump("Hello World!");
return 0;
}
}