20 lines · plain
1; AIX doesn't have support for DWARF 6 DW_AT_language_name2; XFAIL: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}3; RUN: %llc_dwarf -filetype=obj -O0 < %s | llvm-dwarfdump -debug-info - | FileCheck %s --implicit-check-not "DW_AT_language_name"4 5; CHECK: DW_AT_language (DW_LANG_C)6 7@x = global i32 0, align 4, !dbg !08 9!llvm.dbg.cu = !{!2}10!llvm.module.flags = !{!6, !7}11 12!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())13!1 = !DIGlobalVariable(name: "x", scope: !2, file: !3, line: 1, type: !5, isLocal: false, isDefinition: true)14!2 = distinct !DICompileUnit(language: DW_LANG_C, file: !3, producer: "handwritten", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, globals: !4, splitDebugInlining: false, nameTableKind: Apple, sysroot: "/")15!3 = !DIFile(filename: "cu.cpp", directory: "/tmp")16!4 = !{!0}17!5 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)18!6 = !{i32 7, !"Dwarf Version", i32 5}19!7 = !{i32 2, !"Debug Info Version", i32 3}20