blob: 594b40f52df253925a3840f068c71c012625c6be [file] [log] [blame] [edit]
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
struct Foo {
// Allocating constructor - should have no line table info.
// CHECK: !DISubprogram(name: "init", linkageName: "$S12Constructors3FooV1xACs5Int64V_tcfC",
// CHECK-SAME: line: [[@LINE+3]]
// CHECK-NOT: scopeLine: 0
// CHECK-SAME: isDefinition: true
init(x: Int64) {}
func bar(_ x: Int64) {}
}
var f = Foo(x: 1)
f.bar(2)