Files
swift-mirror/test/DebugInfo/implicitreturn.swift
Bob Wilson 2df66cf8c4 Implement inline scopes for the performance inliner.
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
2014-06-12 19:48:43 +00:00

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