blob: bc6e3804c4ead2e730d5115d8b01e522cb904879 [file] [log] [blame]
// RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | %FileCheck %s
class DeepThought {
func query() -> Int64 { return 42 }
}
func foo() -> Int64 {
// CHECK: call void @llvm.dbg.declare(metadata %T3let11DeepThoughtC** {{.*}}, metadata ![[A:.*]], metadata !{{[0-9]+}})
// CHECK-DAG: !DILocalVariable(name: "machine",{{.*}}line: [[@LINE+1]], type: !{{[0-9]+}})
let machine = DeepThought()
// CHECK-DAG: !DILocalVariable(name: "a", {{.*}}line: [[@LINE+1]],
let a = machine.query()
return a
}