mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
MDModule was a bitcode-incompatible internal-only extension that has since been replaced with a blessed IR node on trunk. <rdar://problem/20965932> Upstream DIModule and support it in clang-700, swiftlang-700, and lldb-700 Swift SVN r29832
15 lines
445 B
Swift
15 lines
445 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: "_TtCSo8Protocol"
|
|
// CHECK: ![[ObjectiveC]] = !DIModule({{.*}}, name: "ObjectiveC"
|
|
import Foundation
|
|
|
|
public func f() {
|
|
var protocolObject = NSProtocolFromString("HelperTool")!
|
|
}
|
|
|