2
2
3
3
// REQUIRES: objc_interop
4
4
5
- // rdar://103369740 #62183
6
- // UNSUPPORTED: OS=watchos
7
-
8
5
func markUsed< T> ( _ t: T ) { }
9
6
10
7
protocol BarProtocol {
@@ -15,9 +12,9 @@ extension Bar: BarProtocol {}
15
12
16
13
let bar = Bar ( )
17
14
markUsed ( Bar ( value: 0 ) )
18
- // CHECK: call swiftcc i64 @"$sSo3BarC5valueABSgs5Int32V_tcfC"
15
+ // CHECK: call swiftcc {{i32| i64}} @"$sSo3BarC5valueABSgs5Int32V_tcfC"
19
16
markUsed ( Bar . init ( value: 0 ) )
20
- // CHECK: call swiftcc i64 @"$sSo3BarC5valueABSgs5Int32V_tcfC"
17
+ // CHECK: call swiftcc {{i32| i64}} @"$sSo3BarC5valueABSgs5Int32V_tcfC"
21
18
22
19
bar. directProperty = 123
23
20
// CHECK: call void @"\01-[Bar setDirectProperty:]"({{.*}}, i8* undef, i32 {{.*}})
@@ -60,8 +57,8 @@ markUsed(Bar.directClassMethod2())
60
57
markUsed ( bar. directProtocolMethod ( ) )
61
58
// CHECK: call {{.*}} @"\01-[Bar directProtocolMethod]"({{.*}}, i8* undef)
62
59
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"
65
62
// CHECK: }
66
63
67
64
// CHECK-DAG: declare i32 @"\01-[Bar directProperty]"
@@ -76,6 +73,6 @@ markUsed(bar.directProtocolMethod())
76
73
// CHECK-DAG: declare {{.*}} @"\01+[Bar directClassMethod2]"
77
74
// CHECK-DAG: declare {{.*}} @"\01-[Bar directProtocolMethod]"
78
75
79
- // CHECK: define {{.*}} swiftcc i64 @"$sSo3BarC5valueABSgs5Int32V_tcfcTO"
76
+ // CHECK: define {{.*}} swiftcc {{i32| i64}} @"$sSo3BarC5valueABSgs5Int32V_tcfcTO"
80
77
// CHECK: call {{.*}} @"\01-[Bar initWithValue:]"
81
78
// CHECK: }
0 commit comments