mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When the new mangling is enabled permanently, the option can be removed from the RUN command lines again.
18 lines
441 B
Swift
18 lines
441 B
Swift
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
|
|
|
|
func markUsed<T>(_ t: T) {}
|
|
|
|
class A {
|
|
var a : A?
|
|
// CHECK: define {{.*}}1ACACycfc
|
|
init() {
|
|
// This store that sets up the stack slot should be on line 0 so
|
|
// the debugger may skip ahead.
|
|
// CHECK: store {{.*}} %0, {{.*}}, !dbg ![[DBG:[0-9]+]]
|
|
// CHECK: ![[DBG]] = {{.*}}line: 0
|
|
markUsed("Hi")
|
|
}
|
|
}
|
|
|
|
let a = A()
|