35 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 -v - | FileCheck %s --implicit-check-not "DW_AT_language"4 5; CHECK: DW_AT_language_name [DW_FORM_data2] (DW_LNAME_ObjC_plus_plus)6; CHECK: DW_AT_language_name [DW_FORM_data2] (DW_LNAME_C_plus_plus)7; CHECK: DW_AT_language_version [DW_FORM_data4] (201100 C++11)8; CHECK: DW_AT_language_name [DW_FORM_data2] (DW_LNAME_Rust)9; CHECK-NOT: DW_AT_language_version10 11@x = global i32 0, align 4, !dbg !012 13; Function Attrs: mustprogress noinline nounwind optnone ssp uwtable(sync)14define void @_Z4funcv() !dbg !8 {15 ret void, !dbg !1116}17 18!llvm.dbg.cu = !{!2, !12, !13}19!llvm.module.flags = !{!6, !7}20 21!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())22!1 = !DIGlobalVariable(name: "x", scope: !2, file: !3, line: 1, type: !5, isLocal: false, isDefinition: true)23!2 = distinct !DICompileUnit(sourceLanguageName: DW_LNAME_ObjC_plus_plus, file: !3, producer: "handwritten", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, globals: !4, splitDebugInlining: false, nameTableKind: Apple, sysroot: "/")24!3 = !DIFile(filename: "cu.cpp", directory: "/tmp")25!4 = !{!0}26!5 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)27!6 = !{i32 7, !"Dwarf Version", i32 5}28!7 = !{i32 2, !"Debug Info Version", i32 3}29!8 = distinct !DISubprogram(name: "func", linkageName: "_Z4funcv", scope: !3, file: !3, line: 2, type: !9, scopeLine: 2, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !2)30!9 = !DISubroutineType(types: !10)31!10 = !{null}32!11 = !DILocation(line: 2, column: 14, scope: !8)33!12 = distinct !DICompileUnit(sourceLanguageName: DW_LNAME_C_plus_plus, sourceLanguageVersion: 201100, file: !3, producer: "handwritten", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, globals: !4, splitDebugInlining: false, nameTableKind: Apple, sysroot: "/")34!13 = distinct !DICompileUnit(sourceLanguageName: DW_LNAME_Rust, sourceLanguageVersion: 0, file: !3, producer: "handwritten", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, globals: !4, splitDebugInlining: false, nameTableKind: Apple, sysroot: "/")35