brintos

brintos / llvm-project-archived public Read only

0
0
Text · 874 B · 38c1ec2 Raw
21 lines · plain
1; RUN: llvm-dis -o - %s.bc | FileCheck %s2 3@g = common global i8 0, align 4, !dbg !04 5!llvm.dbg.cu = !{!1}6!llvm.module.flags = !{!7, !8}7 8!0 = distinct !DIGlobalVariable(name: "g", scope: !1, file: !2, line: 1, type: !5, isLocal: false, isDefinition: true, expr: !6)9!1 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, producer: "clang (llvm/trunk 288154)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !3, globals: !4)10!2 = !DIFile(filename: "a.c", directory: "/")11!3 = !{}12!4 = !{!0}13!5 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)14; Old-style DIExpression bitcode records using DW_OP_bit_piece should be15; upgraded to DW_OP_LLVM_fragment.16;17; CHECK: !DIExpression(DW_OP_LLVM_fragment, 8, 8)18!6 = !DIExpression(DW_OP_bit_piece, 8, 8)19!7 = !{i32 2, !"Dwarf Version", i32 4}20!8 = !{i32 2, !"Debug Info Version", i32 3}21