xref: /llvm-project/llvm/test/DebugInfo/Generic/debug-names-nameless-var.ll (revision 5456f16303d9afb3f3d779bfbe6b84339585d3e1)
1; XFAIL: target={{.*}}-aix{{.*}}
2; RUN: %llc_dwarf -debugger-tune=lldb -accel-tables=Dwarf -filetype=obj -o %t %s
3; RUN: llvm-dwarfdump -debug-names %t | FileCheck %s
4; RUN: llvm-dwarfdump -debug-names -verify %t | FileCheck --check-prefix=VERIFY %s
5
6@nameless_var = constant i8 0, !dbg !0
7
8; CHECK: Name count: 0
9; VERIFY: No errors
10
11!llvm.dbg.cu = !{!10}
12!llvm.module.flags = !{!14, !15}
13!llvm.ident = !{!20}
14
15!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
16!1 = distinct !DIGlobalVariable(scope: null, file: !11, line: 1, type: !5, isLocal: true, isDefinition: true)
17!5 = !DIBasicType(size: 8, encoding: DW_ATE_signed_char)
18!10 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !11, producer: "blah", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, globals: !12, splitDebugInlining: false, nameTableKind: Apple, sysroot: "/")
19!11 = !DIFile(filename: "blah", directory: "blah")
20!12 = !{!0}
21!14 = !{i32 7, !"Dwarf Version", i32 5}
22!15 = !{i32 2, !"Debug Info Version", i32 3}
23!20 = !{!"blah"}
24