Files
swift-mirror/test/DebugInfo/Destructors.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

10 lines
338 B
Swift

// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
public class Foo {
// CHECK: !DISubprogram(name: "deinit", linkageName: "_T011Destructors3FooCfD"
// CHECK-SAME: line: [[@LINE-2]]
// CHECK-SAME: isDefinition: true
var x : Int64
init(x: Int64) { self.x = x }
}