mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Mandatory-inlined (aka transparent functions) are still treated as if they had the location and scope of the call site. <rdar://problem/14845844> Support inline scopes once we have an optimizing SIL-based inliner Patch by Adrian Prantl. Swift SVN r18835
15 lines
368 B
Swift
15 lines
368 B
Swift
// RUN: %swift -target x86_64-apple-darwin10 %s -S -g -o - | FileCheck %s
|
|
func app() {
|
|
// Make sure we don't jump back to before the prologue.
|
|
// CHECK: .loc [[FILEID:[0-9]]] [[@LINE+2]]
|
|
// CHECK-NOT: .loc [[FILEID]] [[@LINE-3]]
|
|
var x : Bool = true
|
|
x = !x
|
|
x = !x
|
|
// CHECK: .loc [[FILEID]] [[@LINE+3]] 1
|
|
// CHECK-NOT:.loc
|
|
// CHECK: ret
|
|
}
|
|
|
|
app()
|