File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ import gizmo
21
21
// CHECK-LABEL: define{{( dllexport)?}}{{( protected)?}} i32 @main
22
22
// CHECK: call swiftcc %swift.metadata_response @"$sSo16NSRuncingOptionsVMa"(i64 0)
23
23
24
+ func use_metadata< T: Equatable > ( _ t: T ) { }
25
+ use_metadata ( NSRuncingOptions . mince)
26
+
27
+ // CHECK-LABEL: define linkonce_odr hidden swiftcc %swift.metadata_response @"$sSo16NSRuncingOptionsVMa"(i64 %0)
28
+ // CHECK: call swiftcc %swift.metadata_response @swift_getForeignTypeMetadata([[INT]] %0,
29
+ // CHECK-SAME: @"$sSo16NSRuncingOptionsVMf"
30
+ // CHECK-SAME: [[NOUNWIND_READNONE:#[0-9]+]]
31
+
24
32
// CHECK: define hidden swiftcc i16 @"$s12objc_ns_enum09imported_C9_inject_aSo16NSRuncingOptionsVyF"()
25
33
// CHECK: ret i16 123
26
34
func imported_enum_inject_a( ) -> NSRuncingOptions {
@@ -87,14 +95,6 @@ func test_enum_without_name_Equatable(_ obj: TestThatEnumType) -> Bool {
87
95
return obj. getValue ( ) != . ValueOfThatEnumType
88
96
}
89
97
90
- func use_metadata< T: Equatable > ( _ t: T ) { }
91
- use_metadata ( NSRuncingOptions . mince)
92
-
93
- // CHECK-LABEL: define linkonce_odr hidden swiftcc %swift.metadata_response @"$sSo16NSRuncingOptionsVMa"(i64 %0)
94
- // CHECK: call swiftcc %swift.metadata_response @swift_getForeignTypeMetadata([[INT]] %0,
95
- // CHECK-SAME: @"$sSo16NSRuncingOptionsVMf"
96
- // CHECK-SAME: [[NOUNWIND_READNONE:#[0-9]+]]
97
-
98
98
@objc enum ExportedToObjC : Int {
99
99
case Foo = - 1 , Bar, Bas
100
100
}
You can’t perform that action at this time.
0 commit comments