1 # RUN: llvm-mc %s -filetype obj -triple x86_64 -o %t
2 # RUN: llvm-dwarfdump -debug-info -debug-types %t | FileCheck %s
4 # CHECK: .debug_info contents:
5 # CHECK-NEXT: Compile Unit: {{.+}}, abbr_offset = 0x00a5 (invalid),
6 # CHECK-NEXT: <compile unit can't be parsed!>
8 # CHECK: .debug_types contents:
9 # CHECK-NEXT: Type Unit: {{.+}}, abbr_offset = 0x00a5 (invalid), addr_size = 0x08, name = '',
10 # CHECK-NEXT: <type unit can't be parsed!>
12 .section .debug_info,"",@progbits
13 .long .LCUEnd-.LCUVersion # Length of Unit
15 .short 4 # DWARF version number
16 .long 0xa5 # Offset Into Abbrev. Section (invalid)
17 .byte 8 # Address Size
18 .byte 1 # Abbreviation code
21 .section .debug_types,"",@progbits
23 .long .LTUEnd-.LTUVersion # Length of Unit
25 .short 4 # DWARF version number
26 .long 0xa5 # Offset Into Abbrev. Section (invalid)
27 .byte 8 # Address Size
28 .quad 0x0011223344556677 # Type Signature
29 .long .LTUType-.LTUBegin # Type offset
31 .byte 1 # Abbreviation code