File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-swift-frontend -emit-sib -emit-module-summary-path %t/default_wt.swiftmodule.summary -module-name default_wt -Xllvm -module-summary-embed-debug-name %s
3
- // RUN: %swift_frontend_plain -cross -module-opt %t/default_wt.swiftmodule.summary -module-summary-embed-debug-name -o %t/default_wt.swiftmodule.merged-summary
3
+ // RUN: %swift_frontend_plain -merge -module-summary %t/default_wt.swiftmodule.summary -module-summary-embed-debug-name -o %t/default_wt.swiftmodule.merged-summary
4
4
// RUN: %swift-module-summary-test --to-yaml %t/default_wt.swiftmodule.merged-summary -o %t/default_wt.merged-summary.yaml
5
5
6
6
// Ensure that optimizer won't eliminate PrimitiveSequenceType.getPrimitiveSequence
7
7
// RUN: %target-swift-frontend -c -module-summary-path %t/default_wt.swiftmodule.merged-summary default_wt.sib -o %t/default_wt.o
8
- // RUN: %target-swiftc_driver %t/default_wt.o -o %t/default_wt
9
- // RUN: %t/default_wt
8
+ // RUN: %target-build-swift %t/default_wt.o -o %t/default_wt
9
+ // RUN: %target-run % t/default_wt
10
10
11
11
// RUN: cat %t/default_wt.merged-summary.yaml | %FileCheck %s
12
12
// CHECK: 8732890044670327403:
Original file line number Diff line number Diff line change @@ -46,14 +46,17 @@ func callableFromC2(x: Int) -> Int {
46
46
return 2
47
47
}
48
48
49
- // RUN: cat %t/preserved.summary.yaml | %FileCheck %s -check-prefix OBJC
49
+ // RUN: if [ %target-runtime == "objc" ]; then cat %t/preserved.summary.yaml | %FileCheck %s -check-prefix OBJC; fi
50
50
// OBJC: 3149498140227613915:
51
51
// OBJC-NEXT: name: '$s9preserved1AC11objcMethod1yyFTo'
52
52
// OBJC-NEXT: guid: 3149498140227613915
53
53
// OBJC-NEXT: live: false
54
54
// OBJC-NEXT: preserved: true
55
+
56
+ #if canImport(ObjectiveC)
55
57
import Foundation
56
58
57
59
class A : NSObject {
58
60
@objc func objcMethod1( ) { }
59
61
}
62
+ #endif
Original file line number Diff line number Diff line change 66
66
// VTABLE-IMPL-NEXT: type_guid: 9126595621082655001
67
67
68
68
69
- // RUN: %swift_frontend_plain -cross -module-opt %t/type_refs.swiftmodule.summary -module-summary-embed-debug-name -o %t/type_refs.swiftmodule.merged-summary
69
+ // RUN: %swift_frontend_plain -merge -module-summary %t/type_refs.swiftmodule.summary -module-summary-embed-debug-name -o %t/type_refs.swiftmodule.merged-summary
70
70
// RUN: %swift-module-summary-test --to-yaml %t/type_refs.swiftmodule.merged-summary -o %t/type_refs.merged-summary.yaml
71
71
// Ensure that WT of V is not used.
72
72
// RUN: cat %t/type_refs.merged-summary.yaml | %FileCheck %s -check-prefix USED-TYPE
You can’t perform that action at this time.
0 commit comments