Files
swift-mirror/test/DebugInfo/implicitreturn.swift
Adrian Prantl 94754613d2 Relax test.
On Windows a separate .loc directive is emitted to introduce the function
epilogue, which is not there on other platforms.

rdar://116482190
2023-10-06 13:55:33 -07:00

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()