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.
9 lines
314 B
Swift
9 lines
314 B
Swift
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
|
|
protocol A {}
|
|
protocol B {}
|
|
typealias C = B & A
|
|
protocol D {}
|
|
var p: (C & D)?
|
|
// CHECK-DAG: !DIGlobalVariable(name: "p", {{.*}}type: ![[TY:[0-9]+]]
|
|
// CHECK-DAG: ![[TY]] = {{.*}}identifier: "_T04main1A_AA1BAA1DpSgD"
|