mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When the new mangling is enabled permanently, the option can be removed from the RUN command lines again.
15 lines
478 B
Swift
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")!
|
|
}
|
|
|