xref: /llvm-project/llvm/test/CodeGen/Generic/dbg_value.ll (revision 0e8bd5a44a1bd8034706189b49a7a816c59304cd)
1; RUN: llc < %s
2; rdar://7759395
3
4%0 = type { i32, i32 }
5
6define void @t(ptr, i32, i32, i32, i32) nounwind {
7  tail call void @llvm.dbg.value(metadata ptr %0, i64 0, metadata !0, metadata !DIExpression()), !dbg !DILocation(scope: !1)
8  unreachable
9}
10
11declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone
12
13; !0 should conform to the format of DIVariable.
14!0 = !DILocalVariable(name: "a", arg: 1, scope: !1)
15!1 = distinct !DISubprogram()
16