mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Applied the upgrade script from r236120 (LLVM) and r236121 (CFE). This is the final step of rdar://problem/20434113. Swift SVN r27925
14 lines
434 B
Swift
14 lines
434 B
Swift
// 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: "_TFV12Constructors3FooCfMS0_FT1xSi_S0_",
|
|
// CHECK-SAME: line: [[@LINE+3]]
|
|
// CHECK-NOT: scopeLine: 0
|
|
// CHECK-SAME: isDefinition: true
|
|
init(x: Int) {}
|
|
func bar(x: Int) {}
|
|
}
|
|
|
|
var f = Foo(x: 1)
|
|
f.bar(2)
|