Files
swift-mirror/test/DebugInfo/implicitdecl.swift
Adrian Prantl c5dd8bea82 Debug Info: Migrate from MDModule to DIModule.
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
2015-07-01 02:25:22 +00:00

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")!
}