Skip to content

Commit d6aa544

Browse files
Merge pull request #62601 from ellishg/fix-objc-direct-test-watchos
Fix objc_direct test that was failing on watchOS
2 parents 7c251b2 + 3072991 commit d6aa544

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

test/IRGen/objc_direct.swift

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
// REQUIRES: objc_interop
44

5-
// rdar://103369740 #62183
6-
// UNSUPPORTED: OS=watchos
7-
85
func markUsed<T>(_ t: T) {}
96

107
protocol BarProtocol {
@@ -15,9 +12,9 @@ extension Bar: BarProtocol {}
1512

1613
let bar = Bar()
1714
markUsed(Bar(value: 0))
18-
// CHECK: call swiftcc i64 @"$sSo3BarC5valueABSgs5Int32V_tcfC"
15+
// CHECK: call swiftcc {{i32|i64}} @"$sSo3BarC5valueABSgs5Int32V_tcfC"
1916
markUsed(Bar.init(value: 0))
20-
// CHECK: call swiftcc i64 @"$sSo3BarC5valueABSgs5Int32V_tcfC"
17+
// CHECK: call swiftcc {{i32|i64}} @"$sSo3BarC5valueABSgs5Int32V_tcfC"
2118

2219
bar.directProperty = 123
2320
// CHECK: call void @"\01-[Bar setDirectProperty:]"({{.*}}, i8* undef, i32 {{.*}})
@@ -60,8 +57,8 @@ markUsed(Bar.directClassMethod2())
6057
markUsed(bar.directProtocolMethod())
6158
// CHECK: call {{.*}} @"\01-[Bar directProtocolMethod]"({{.*}}, i8* undef)
6259

63-
// CHECK: define {{.*}} swiftcc i64 @"$sSo3BarC5valueABSgs5Int32V_tcfC"
64-
// CHECK: call swiftcc i64 @"$sSo3BarC5valueABSgs5Int32V_tcfcTO"
60+
// CHECK: define {{.*}} swiftcc {{i32|i64}} @"$sSo3BarC5valueABSgs5Int32V_tcfC"
61+
// CHECK: call swiftcc {{i32|i64}} @"$sSo3BarC5valueABSgs5Int32V_tcfcTO"
6562
// CHECK: }
6663

6764
// CHECK-DAG: declare i32 @"\01-[Bar directProperty]"
@@ -76,6 +73,6 @@ markUsed(bar.directProtocolMethod())
7673
// CHECK-DAG: declare {{.*}} @"\01+[Bar directClassMethod2]"
7774
// CHECK-DAG: declare {{.*}} @"\01-[Bar directProtocolMethod]"
7875

79-
// CHECK: define {{.*}} swiftcc i64 @"$sSo3BarC5valueABSgs5Int32V_tcfcTO"
76+
// CHECK: define {{.*}} swiftcc {{i32|i64}} @"$sSo3BarC5valueABSgs5Int32V_tcfcTO"
8077
// CHECK: call {{.*}} @"\01-[Bar initWithValue:]"
8178
// CHECK: }

0 commit comments

Comments
 (0)