forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathundef_objc.sil
23 lines (19 loc) · 941 Bytes
/
undef_objc.sil
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil %s | %target-sil-opt -assume-parsing-unqualified-ownership-sil | %FileCheck %s
// REQUIRES: objc_interop
sil_stage raw
import Builtin
import Swift
protocol P { }
class C { }
sil @general_test : $() -> () {
bb0:
// CHECK: thick_to_objc_metatype undef : $@thick C.Type to $@objc_metatype C.Type
thick_to_objc_metatype undef : $@thick C.Type to $@objc_metatype C.Type
// CHECK: objc_to_thick_metatype undef : $@objc_metatype C.Type to $@thick C.Type
objc_to_thick_metatype undef : $@objc_metatype C.Type to $@thick C.Type
// CHECK: objc_metatype_to_object undef : $@objc_metatype C.Type to $AnyObject
objc_metatype_to_object undef : $@objc_metatype C.Type to $AnyObject
// CHECK: objc_existential_metatype_to_object undef : $@objc_metatype P.Type to $AnyObject
objc_existential_metatype_to_object undef : $@objc_metatype P.Type to $AnyObject
unreachable
}