22
33// REQUIRES: objc_interop
44
5- // rdar://103369740 #62183
6- // UNSUPPORTED: OS=watchos
7-
85func markUsed< T> ( _ t: T ) { }
96
107protocol BarProtocol {
@@ -15,9 +12,9 @@ extension Bar: BarProtocol {}
1512
1613let bar = Bar ( )
1714markUsed ( Bar ( value: 0 ) )
18- // CHECK: call swiftcc i64 @"$sSo3BarC5valueABSgs5Int32V_tcfC"
15+ // CHECK: call swiftcc {{i32| i64}} @"$sSo3BarC5valueABSgs5Int32V_tcfC"
1916markUsed ( Bar . init ( value: 0 ) )
20- // CHECK: call swiftcc i64 @"$sSo3BarC5valueABSgs5Int32V_tcfC"
17+ // CHECK: call swiftcc {{i32| i64}} @"$sSo3BarC5valueABSgs5Int32V_tcfC"
2118
2219bar. directProperty = 123
2320// CHECK: call void @"\01-[Bar setDirectProperty:]"({{.*}}, i8* undef, i32 {{.*}})
@@ -60,8 +57,8 @@ markUsed(Bar.directClassMethod2())
6057markUsed ( 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