File tree Expand file tree Collapse file tree 7 files changed +20
-14
lines changed Expand file tree Collapse file tree 7 files changed +20
-14
lines changed Original file line number Diff line number Diff line change 4
4
5
5
// REQUIRES: objc_interop, OS=macosx
6
6
// RUN: %empty-directory(%t)
7
+ // RUN: %empty-directory(%t/ModuleCache)
7
8
// RUN: cp %s %t/MyModule.swiftinterface
8
- // RUN: %target-swift-api-extract -target x86_64-apple-macos11.0 -o - -pretty-print %t/MyModule.swiftinterface -module-name MyModule -module-cache-path %t | %FileCheck %s
9
+ // RUN: %target-swift-api-extract -target x86_64-apple-macos11.0 -o - -pretty-print %t/MyModule.swiftinterface -module-name MyModule -module-cache-path %t/ModuleCache | %FileCheck %s
9
10
10
11
public func publicFunction( )
11
12
internal func internalFunction( )
Original file line number Diff line number Diff line change 1
1
// REQUIRES: objc_interop, OS=macosx
2
2
// RUN: %empty-directory(%t)
3
- // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) %s -typecheck -emit-module-interface-path %t/MyModule.swiftinterface -enable-library-evolution -module-name MyModule -swift-version 5
4
- // RUN: %target-swift-api-extract -o - -pretty-print %t/MyModule.swiftinterface -module-name MyModule -module-cache-path %t | %FileCheck %s
3
+ // RUN: %empty-directory(%t/ModuleCache)
4
+ // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) %s -typecheck -parse-as-library -emit-module-interface-path %t/MyModule.swiftinterface -enable-library-evolution -module-name MyModule -swift-version 5
5
+ // RUN: %target-swift-api-extract -o - -pretty-print %t/MyModule.swiftinterface -module-name MyModule -module-cache-path %t/ModuleCache | %FileCheck %s
5
6
6
7
import Foundation
7
8
Original file line number Diff line number Diff line change 1
1
// REQUIRES: objc_interop, OS=macosx
2
2
// RUN: %empty-directory(%t)
3
- // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) %s -typecheck -emit-module-interface-path %t/MyModule.swiftinterface -enable-library-evolution -module-name MyModule -swift-version 5
4
- // RUN: %target-swift-api-extract -o - -pretty-print %t/MyModule.swiftinterface -module-name MyModule -module-cache-path %t | %FileCheck %s
3
+ // RUN: %empty-directory(%t/ModuleCache)
4
+ // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) %s -typecheck -parse-as-library -emit-module-interface-path %t/MyModule.swiftinterface -enable-library-evolution -module-name MyModule -swift-version 5
5
+ // RUN: %target-swift-api-extract -o - -pretty-print %t/MyModule.swiftinterface -module-name MyModule -module-cache-path %t/ModuleCache | %FileCheck %s
5
6
6
7
import Foundation
7
8
@@ -105,4 +106,4 @@ extension B {
105
106
// CHECK-NEXT: ],
106
107
// CHECK-NEXT: "classMethods": []
107
108
// CHECK-NEXT: }
108
- // CHECK-NEXT: ],
109
+ // CHECK-NEXT: ],
Original file line number Diff line number Diff line change 1
1
// REQUIRES: objc_interop, OS=macosx
2
2
// RUN: %empty-directory(%t)
3
- // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) %s -typecheck -emit-module-interface-path %t/MyModule.swiftinterface -enable-library-evolution -module-name MyModule -swift-version 5
4
- // RUN: %target-swift-api-extract -o - -pretty-print %t/MyModule.swiftinterface -module-name MyModule -module-cache-path %t | %FileCheck %s
3
+ // RUN: %empty-directory(%t/ModuleCache)
4
+ // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) %s -typecheck -parse-as-library -emit-module-interface-path %t/MyModule.swiftinterface -enable-library-evolution -module-name MyModule -swift-version 5
5
+ // RUN: %target-swift-api-extract -o - -pretty-print %t/MyModule.swiftinterface -module-name MyModule -module-cache-path %t/ModuleCache | %FileCheck %s
5
6
6
7
import Foundation
7
8
Original file line number Diff line number Diff line change 4
4
// RUN: cp %S/Inputs/module.modulemap %t/NativeDep.framework/Modules
5
5
// RUN: cp %S/Inputs/NativeDep.h %t/NativeDep.framework/Headers
6
6
7
- // RUN: %target-swift-frontend %s -emit-module -emit-module-interface-path %t/MyModule.swiftinterface -emit-module-path %t/MyModule.swiftmodule -F %t -enable-library-evolution -module-cache-path %t/cache -module-name MyModule -swift-version 5
7
+ // RUN: %target-swift-frontend %s -parse-as-library - emit-module -emit-module-interface-path %t/MyModule.swiftinterface -emit-module-path %t/MyModule.swiftmodule -F %t -enable-library-evolution -module-cache-path %t/cache -module-name MyModule -swift-version 5
8
8
9
9
/// Check that both swiftmodule and swiftinterface can be used as input.
10
10
// RUN: %target-swift-api-extract -o - -pretty-print %t/MyModule.swiftmodule -module-name MyModule -module-cache-path %t/cache -F %t | %FileCheck %s
Original file line number Diff line number Diff line change 1
1
// REQUIRES: objc_interop, OS=macosx
2
2
// RUN: %empty-directory(%t)
3
- // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) %s -typecheck -emit-module-interface-path %t/MyModule.swiftinterface -enable-library-evolution -module-name MyModule -swift-version 5
4
- // RUN: %target-swift-api-extract -o - -pretty-print %t/MyModule.swiftinterface -module-name MyModule -module-cache-path %t | %FileCheck %s
3
+ // RUN: %empty-directory(%t/ModuleCache)
4
+ // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) %s -typecheck -parse-as-library -emit-module-interface-path %t/MyModule.swiftinterface -enable-library-evolution -module-name MyModule -swift-version 5
5
+ // RUN: %target-swift-api-extract -o - -pretty-print %t/MyModule.swiftinterface -module-name MyModule -module-cache-path %t/ModuleCache | %FileCheck %s
5
6
6
7
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) %s -emit-module -emit-module-path %t/MyModule.swiftmodule -enable-library-evolution -module-name MyModule -swift-version 5
7
- // RUN: %target-swift-api-extract -o - -pretty-print %t/MyModule.swiftmodule -module-name MyModule -module-cache-path %t | %FileCheck %s --check-prefix=CHECK-SPI
8
+ // RUN: %target-swift-api-extract -o - -pretty-print %t/MyModule.swiftmodule -module-name MyModule -module-cache-path %t/ModuleCache | %FileCheck %s --check-prefix=CHECK-SPI
8
9
9
10
import Foundation
10
11
Original file line number Diff line number Diff line change 1
1
// REQUIRES: objc_interop, OS=macosx
2
2
// RUN: %empty-directory(%t)
3
- // RUN: %target-swift-frontend %s -typecheck -emit-module-interface-path %t/MyModule.swiftinterface -enable-library-evolution -module-name MyModule -swift-version 5
4
- // RUN: %target-swift-api-extract -o - -pretty-print %t/MyModule.swiftinterface -module-name MyModule -module-cache-path %t | %FileCheck %s
3
+ // RUN: %empty-directory(%t/ModuleCache)
4
+ // RUN: %target-swift-frontend %s -typecheck -parse-as-library -emit-module-interface-path %t/MyModule.swiftinterface -enable-library-evolution -module-name MyModule -swift-version 5
5
+ // RUN: %target-swift-api-extract -o - -pretty-print %t/MyModule.swiftinterface -module-name MyModule -module-cache-path %t/ModuleCache | %FileCheck %s
5
6
6
7
// Struct has no objc data.
7
8
@available ( macOS 10 . 13 , * )
You can’t perform that action at this time.
0 commit comments