3
3
// RUN: %target-swift-frontend -emit-module -enable-library-evolution -emit-module-path=%t/resilient_struct.swiftmodule -I %t %S/../Inputs/resilient_struct.swift
4
4
// RUN: %target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) -emit-module-path %t/resilient_class.swiftmodule -enable-library-evolution %S/../Inputs/resilient_class.swift
5
5
// RUN: %target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) -emit-module-path %t/resilient_objc_class.swiftmodule -enable-library-evolution %S/../Inputs/resilient_objc_class.swift
6
- // RUN: %target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) -I %t -emit-ir -enable-library-evolution -enable-resilient-objc-class-stubs %s | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize --check-prefix=CHECK-%target-runtime -DINT=i%target-ptrsize
6
+ // RUN: %target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) -I %t -emit-ir -enable-library-evolution -enable-resilient-objc-class-stubs %s > %t/out
7
+ // RUN: %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize --check-prefix=CHECK-%target-runtime -DINT=i%target-ptrsize < %t/out
8
+ // RUN: %FileCheck %s --check-prefix=NEGATIVE < %t/out
7
9
8
10
import Foundation
9
11
import resilient_class
@@ -88,13 +90,9 @@ import resilient_objc_class
88
90
// CHECK-SAME: @"$s31class_update_callback_with_stub27FixedLayoutNSObjectSubclassCMs"
89
91
90
92
91
- // -- The NSObject-derived class appears on the class list
92
-
93
- // CHECK-LABEL: @objc_classes = internal global
94
- // CHECK-SAME: @"$s31class_update_callback_with_stub25ResilientNSObjectSubclassCMs"
95
- // CHECK-SAME: @"$s31class_update_callback_with_stub27FixedLayoutNSObjectSubclassCMs"
96
- // CHECK-SAME: , section "__DATA,__objc_classlist,regular,no_dead_strip"
93
+ // -- Class stubs do not appear in the class list
97
94
95
+ // NEGATIVE-NOT: @objc_classes =
98
96
99
97
// -- The category list
100
98
@@ -152,4 +150,4 @@ extension ResilientNSObjectSubclass {
152
150
153
151
extension FixedLayoutNSObjectSubclass {
154
152
@objc public func objcMethod( ) { }
155
- }
153
+ }
0 commit comments