Files
swift-mirror/test/DebugInfo/let.swift
Erik Eckstein 8e3b05d2f4 IRGen: Use new mangling for llvm type names.
This should have no effect on the generated binary.
2017-02-22 09:19:10 -08:00

18 lines
572 B
Swift

// 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: !DILocalVariable(name: "machine"
// CHECK-NOT: flags:
// CHECK-SAME: line: [[@LINE+1]],
let machine = DeepThought()
// CHECK: !DILocalVariable(name: "a"
// CHECK-SAME: line: [[@LINE+1]],
let a = machine.query()
return a
}