Files
swift-mirror/test/DebugInfo/let.swift
Adrian Prantl 7f28907cae Reapply r12201 and r12289 with a workaround that does not crash when
the location of a DebugValueInst is not a Decl.
FIXME: This should probably not happen <rdar://problem/15825786>.


This reverts commit 12323 + bugfix.

Swift SVN r12332
2014-01-15 18:05:51 +00:00

12 lines
288 B
Swift

// RUN: %swift -triple x86_64-apple-darwin13 %s -emit-llvm -g -o - | FileCheck %s
class DeepThought {
func query() -> Int { return 42 }
}
func foo() -> Int {
let machine = DeepThought()
// CHECK: [ DW_TAG_auto_variable ] [a] [line [[@LINE+1]]]
let a = machine.query()
return a
}