Files
swift-mirror/test/IRGen/generic_requirement_objc.sil
Michael Gottesman fd4828e40a Eliminate -assume-parsing-unqualified-ownership-sil from tests.
I am doing this separately from the actual change to eliminate the option to
make it easier to review.
2018-12-19 12:54:13 -08:00

13 lines
429 B
Plaintext

// RUN: %target-swift-frontend %s -emit-ir | %FileCheck %s
// REQUIRES: objc_interop
import Builtin
@objc protocol ObjCProto { }
// CHECK: @"$s24generic_requirement_objc13GenericStructVMn" =
// CHECK-SAME: i32 add {{.*}} ptrtoint (i8** @"\01l_OBJC_PROTOCOL_REFERENCE_$__TtP24generic_requirement_objc9ObjCProto_" {{.*}} @"$s24generic_requirement_objc13GenericStructVMn", {{.*}} i32 3)
struct GenericStruct<T: ObjCProto> { }