blob: 0757081a1061c7799635b690718fdba8adebbe88 [file] [log] [blame]
// REQUIRES: objc_interop
// RUN: %target-swift-frontend -I %S/../Inputs/custom-modules %s -emit-ir | %FileCheck %s
import ObjCRuntimeVisible
protocol MyProtocol {}
protocol YourProtocol {}
extension A : MyProtocol {}
extension A : YourProtocol {}
// CHECK-LABEL: @"$SSo1ACMn" = linkonce_odr hidden constant <{ {{.*}} }>, section "__TEXT,__const"
// CHECK-LABEL: define linkonce_odr hidden swiftcc %swift.metadata_response @"$SSo1ACMa"({{i32|i64}}) {{.*}} {
// CHECK: call %objc_class* @objc_lookUpClass
// CHECK: call %swift.type* @swift_getObjCClassMetadata
// CHECK: ret