mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
446 B
Swift
15 lines
446 B
Swift
// RUN: %target-swift-frontend -emit-ir -g %s -o - | %FileCheck %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "Protocol",
|
|
// CHECK-SAME: scope: ![[ObjectiveC:[0-9]+]]
|
|
// CHECK-SAME: identifier: "$sSo8ProtocolCD"
|
|
// CHECK: ![[ObjectiveC]] = !DIModule({{.*}}, name: "ObjectiveC"
|
|
import Foundation
|
|
|
|
public func f() {
|
|
var protocolObject = NSProtocolFromString("HelperTool")!
|
|
}
|
|
|