Skip to content

Commit 0b4641d

Browse files
committed
Fixup Tests
1 parent 8d2bf20 commit 0b4641d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

test/Interop/Cxx/class/protocol-conformance-irgen.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ protocol HasReturn42 {
1111
// CHECK: [[OUT:%.*]] = call i32 @{{_ZN18ConformsToProtocol8return42Ev|"\?return42@ConformsToProtocol@@QEAAHXZ"}}(%struct.ConformsToProtocol*
1212
// CHECK: ret i32 [[OUT]]
1313

14-
// CHECK: define {{.*}}%swift.metadata_response @"$sSo18ConformsToProtocolVMa"(i64 [[ARG:%.*]])
14+
// CHECK: define {{.*}}%swift.metadata_response @"$sSo18ConformsToProtocolVMa"({{i64|i32}} [[ARG:%.*]])
1515
// CHECK: load %swift.type*, %swift.type** @"$sSo18ConformsToProtocolVML"
16-
// CHECK: call swiftcc %swift.metadata_response @swift_getForeignTypeMetadata(i64 [[ARG]], %swift.type* getelementptr inbounds (%swift.full_type, %swift.full_type* bitcast (<{ i8**, i64, <{ i32, i32, i32, i32, i32, i32, i32, i32 }>* }>* @"$sSo18ConformsToProtocolVMf" to %swift.full_type*), i32 0, i32 1))
16+
// CHECK: call swiftcc %swift.metadata_response @swift_getForeignTypeMetadata({{i64|i32}} [[ARG]]
1717
// CHECK: ret %swift.metadata_response
1818

1919
extension ConformsToProtocol : HasReturn42 {}

test/Interop/Cxx/templates/class-template-instantiation.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ TemplatesTestSuite.test("with-swift-type") {
1818
expectEqual(wrappedMagicNumber.getValuePlusArg(8), 21)
1919
}
2020

21-
TemplatesTestSuite.test("with-c++-type-calling-method-on-arg") {
21+
TemplatesTestSuite.test("with-c++-type-calling-method-on-arg")
22+
.skip(.watchOSSimulatorAny("rdar://problem/87262809")).code {
2223
let i1 = IntWrapper(value: 42)
2324
let i2 = IntWrapper(value: 12)
2425
var wrappedMagicNumber = MagicWrapper<IntWrapper>(t: i1)

test/Interop/Cxx/templates/class-template-uninstantiatable-members-irgen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import ClassTemplateInstantiationErrors
44

55
// CHECK-LABEL: define {{.*}}void @"$s4main23instantiateValidMembersyyF"()
66
// CHECK: call i32 @{{_ZN21CannotBeInstantiantedI10IntWrapperE8incValueEv|"\?incValue@\?\$CannotBeInstantianted@UIntWrapper@@@@QEAAHXZ"}}(%struct.CannotBeInstantianted*
7-
// CHECK: call i32 @{{_ZN21CannotBeInstantiantedI10IntWrapperE8incValueES0_|"\?incValue@\?\$CannotBeInstantianted@UIntWrapper@@@@QEAAHUIntWrapper@@@Z"}}(%struct.CannotBeInstantianted* {{.*}}, {{i32|i64|\[1 x i32\]|\%struct\.IntWrapper\* byval\(\%struct\.IntWrapper\)}}
7+
// CHECK: call i32 @{{_ZN21CannotBeInstantiantedI10IntWrapperE8incValueES0_|"\?incValue@\?\$CannotBeInstantianted@UIntWrapper@@@@QEAAHUIntWrapper@@@Z"}}(%struct.CannotBeInstantianted*
88
// CHECK: ret void
99

1010
// CHECK-LABEL: define {{.*}}i32 @{{_ZN21CannotBeInstantiantedI10IntWrapperE8incValueEv|"\?incValue@\?\$CannotBeInstantianted@UIntWrapper@@@@QEAAHXZ"}}(%struct.CannotBeInstantianted*

0 commit comments

Comments
 (0)