Skip to content

Commit c625b56

Browse files
committed
[test] accept any size for signature of .cxx methods in objc_subclasses
The size of the signature for .cxx_construct and .cxx_destruct varies with the bitness of the target (the signature on 32-bit platforms is one character shorter than on 64-bit targets), and IRGen/objc_subclass.swift is the only ObjC test with .cxx_{construct,destruct} methods that runs on both.
1 parent a207347 commit c625b56

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/IRGen/objc_subclass.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
// CHECK-32: i8* bitcast (%0* (%0*, i8*, i32)* @"$S13objc_subclass10SwiftGizmoC7bellsOnACSgSi_tcfcTo" to i8*)
102102
// CHECK-32: }, { i8*, i8*, i8* } {
103103
// CHECK-32: i8* getelementptr inbounds ([15 x i8], [15 x i8]* @"\01L_selector_data(.cxx_construct)", i32 0, i32 0),
104-
// CHECK-32: i8* getelementptr inbounds ([8 x i8], [8 x i8]* {{@[0-9]+}}, i32 0, i32 0),
104+
// CHECK-32: i8* getelementptr inbounds ([{{[0-9]+}} x i8], [{{[0-9]+}} x i8]* {{@[0-9]+}}, i32 0, i32 0),
105105
// CHECK-32: i8* bitcast (%0* (%0*, i8*)* @"$S13objc_subclass10SwiftGizmoCfeTo" to i8*)
106106
// CHECK-32: }]
107107
// CHECK-32: }, section "__DATA, __objc_const", align 4
@@ -151,7 +151,7 @@
151151
// CHECK-64: i8* bitcast ([[OPAQUE11:%.*]]* ([[OPAQUE12:%.*]]*, i8*, i64)* @"$S13objc_subclass10SwiftGizmoC7bellsOnACSgSi_tcfcTo" to i8*)
152152
// CHECK-64: }, {
153153
// CHECK-64: i8* getelementptr inbounds ([15 x i8], [15 x i8]* @"\01L_selector_data(.cxx_construct)", i64 0, i64 0),
154-
// CHECK-64: i8* getelementptr inbounds ([8 x i8], [8 x i8]* {{@[0-9]+}}, i64 0, i64 0),
154+
// CHECK-64: i8* getelementptr inbounds ([{{[0-9]+}} x i8], [{{[0-9]+}} x i8]* {{@[0-9]+}}, i64 0, i64 0),
155155
// CHECK-64: i8* bitcast ([[OPAQUE5]]* ([[OPAQUE6]]*, i8*)* @"$S13objc_subclass10SwiftGizmoCfeTo" to i8*)
156156
// CHECK-64: }]
157157
// CHECK-64: }, section "__DATA, __objc_const", align 8
@@ -237,7 +237,7 @@
237237
// CHECK-32: i8* bitcast (%3* (%3*, i8*, i32)* @"$S13objc_subclass11SwiftGizmo2C7bellsOnACSgSi_tcfcTo" to i8*)
238238
// CHECK-32: }, {
239239
// CHECK-32: i8* getelementptr inbounds ([14 x i8], [14 x i8]* @"\01L_selector_data(.cxx_destruct)", i32 0, i32 0),
240-
// CHECK-32: i8* getelementptr inbounds ([8 x i8], [8 x i8]* {{@[0-9]+}}, i32 0, i32 0),
240+
// CHECK-32: i8* getelementptr inbounds ([{{[0-9]+}} x i8], [{{[0-9]+}} x i8]* {{@[0-9]+}}, i32 0, i32 0),
241241
// CHECK-32: i8* bitcast (void (%3*, i8*)* @"$S13objc_subclass11SwiftGizmo2CfETo" to i8*)
242242
// CHECK-32: }
243243
// CHECK-32: ]
@@ -265,7 +265,7 @@
265265
// CHECK-64: i8* bitcast ([[OPAQUE21:%.*]]* ([[OPAQUE22:%.*]]*, i8*, i64)* @"$S13objc_subclass11SwiftGizmo2C7bellsOnACSgSi_tcfcTo" to i8*)
266266
// CHECK-64: }, {
267267
// CHECK-64: i8* getelementptr inbounds ([14 x i8], [14 x i8]* @"\01L_selector_data(.cxx_destruct)", i64 0, i64 0),
268-
// CHECK-64: i8* getelementptr inbounds ([8 x i8], [8 x i8]* {{@[0-9]+}}, i64 0, i64 0)
268+
// CHECK-64: i8* getelementptr inbounds ([{{[0-9]+}} x i8], [{{[0-9]+}} x i8]* {{@[0-9]+}}, i64 0, i64 0)
269269
// CHECK-64: i8* bitcast (void ([[OPAQUE20:%.*]]*, i8*)* @"$S13objc_subclass11SwiftGizmo2CfETo" to i8*)
270270
// CHECK-64: }
271271
// CHECK-64: ] }

0 commit comments

Comments
 (0)