mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
On Windows a separate .loc directive is emitted to introduce the function epilogue, which is not there on other platforms. rdar://116482190
16 lines
339 B
Swift
16 lines
339 B
Swift
// RUN: %target-swift-frontend %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+2]] 1
|
|
// CHECK: ret
|
|
}
|
|
|
|
app()
|
|
|