Files
swift-mirror/test/DebugInfo/implicitdecl.swift
Erik Eckstein 1d3724666f tests: convert about 400 tests to the new mangling by using the -new-mangling-for-tests option
When the new mangling is enabled permanently, the option can be removed from the RUN command lines again.
2017-01-24 15:27:45 -08:00

15 lines
478 B
Swift

// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -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: "_T0So8ProtocolCD"
// CHECK: ![[ObjectiveC]] = !DIModule({{.*}}, name: "ObjectiveC"
import Foundation
public func f() {
var protocolObject = NSProtocolFromString("HelperTool")!
}