Compiler projects using llvm
# RUN: llvm-mc %s -filetype obj -triple x86_64-unknown-elf -o - | \
# RUN:   llvm-dwarfdump -debug-types - | \
# RUN:   FileCheck %s

        .section .debug_abbrev,"",@progbits
        .byte 0x01  # Abbrev code
        .byte 0x41  # DW_TAG_type_unit
        .byte 0x01  # DW_CHILDREN_yes
        .byte 0x17  # DW_AT_visibility
        .byte 0x0b  # DW_FORM_data1
        .byte 0x00  # EOM(1)
        .byte 0x00  # EOM(2)
        .byte 0x02  # Abbrev code
        .byte 0x13  # DW_TAG_structure_type
        .byte 0x00  # DW_CHILDREN_no (no members)
        .byte 0x17  # DW_AT_visibility
        .byte 0x0b  # DW_FORM_data1
        .byte 0x00  # EOM(1)
        .byte 0x00  # EOM(2)
        .byte 0x00  # EOM(3)

        .section .debug_types,"",@progbits
# CHECK: .debug_types contents:
# CHECK-NEXT: 0x00000000: Type Unit:
TU_4_64_start:
        .long 0xffffffff            # DWARF64 mark
        .quad TU_4_64_end-TU_4_64_version  # Length of Unit
# CHECK-SAME: length = 0x0000000000000021
# CHECK-SAME: format = DWARF64
TU_4_64_version:
        .short 4                    # DWARF version number
# CHECK-SAME: version = 0x0004
        .quad .debug_abbrev         # Offset Into Abbrev. Section
# CHECK-SAME: abbr_offset = 0x0000
        .byte 8                     # Address Size (in bytes)
# CHECK-SAME: addr_size = 0x08
# CHECK-SAME: name = ''
        .quad 0x0011223344556677    # Type Signature
# CHECK-SAME: type_signature = 0x0011223344556677
        .quad TU_4_64_type-TU_4_64_start # Type offset
# CHECK-SAME: type_offset = 0x0029
# CHECK-SAME: (next unit at 0x0000002d)

        .byte 1                     # Abbreviation code
# CHECK: 0x00000027: DW_TAG_type_unit
        .byte 1                     # DW_VIS_local
# CHECK-NEXT: DW_AT_visibility (DW_VIS_local)

TU_4_64_type:
        .byte 2                     # Abbreviation code
# CHECK: 0x00000029: DW_TAG_structure_type
        .byte 1                     # DW_VIS_local
# CHECK-NEXT: DW_AT_visibility (DW_VIS_local)

        .byte 0 # NULL
# CHECK: 0x0000002b: NULL
        .byte 0 # NULL
TU_4_64_end: