mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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
12 lines
288 B
Swift
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
|
|
}
|