33 lines · plain
1# RUN: llvm-mc %s -filetype obj -triple x86_64 -o %t2# RUN: llvm-dwarfdump -debug-info -debug-types %t | FileCheck %s3 4# CHECK: .debug_info contents:5# CHECK-NEXT: Compile Unit: {{.+}}, abbr_offset = 0x00a5 (invalid),6# CHECK-NEXT: <compile unit can't be parsed!>7 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!>11 12 .section .debug_info,"",@progbits13 .long .LCUEnd-.LCUVersion # Length of Unit14.LCUVersion:15 .short 4 # DWARF version number16 .long 0xa5 # Offset Into Abbrev. Section (invalid)17 .byte 8 # Address Size18 .byte 1 # Abbreviation code19.LCUEnd:20 21 .section .debug_types,"",@progbits22.LTUBegin:23 .long .LTUEnd-.LTUVersion # Length of Unit24.LTUVersion:25 .short 4 # DWARF version number26 .long 0xa5 # Offset Into Abbrev. Section (invalid)27 .byte 8 # Address Size28 .quad 0x0011223344556677 # Type Signature29 .long .LTUType-.LTUBegin # Type offset30.LTUType:31 .byte 1 # Abbreviation code32.LTUEnd:33