1 # RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj | \
2 # RUN: not llvm-dwarfdump -verify - | FileCheck %s
4 # CHECK: parsing .debug_names header at 0x0: unexpected end of data at offset 0x20
6 .section .debug_str,"MS",@progbits,1
8 .asciz "Hand-written dwarf"
10 .section .debug_abbrev,"",@progbits
12 .byte 1 # Abbreviation Code
13 .byte 17 # DW_TAG_compile_unit
14 .byte 1 # DW_CHILDREN_yes
15 .byte 37 # DW_AT_producer
16 .byte 14 # DW_FORM_strp
17 .byte 19 # DW_AT_language
18 .byte 5 # DW_FORM_data2
23 .section .debug_info,"",@progbits
25 .long .Lcu_end0-.Lcu_start0 # Length of Unit
27 .short 4 # DWARF version number
28 .long .Lsection_abbrev # Offset Into Abbrev. Section
29 .byte 8 # Address Size (in bytes)
30 .byte 1 # Abbrev [1] DW_TAG_compile_unit
31 .long .Lstring_producer # DW_AT_producer
32 .short 12 # DW_AT_language
33 .byte 0 # End Of Children Mark
36 .section .debug_names,"",@progbits
37 .long .Lnames_end0-.Lnames_start0 # Header: contribution length
39 .short 5 # Header: version
40 .short 0 # Header: padding
41 .long 1 # Header: compilation unit count
42 .long 0 # Header: local type unit count
43 .long 0 # Header: foreign type unit count
44 .long 2 # Header: bucket count
45 .long 3 # Header: name count
46 .long 47 # Header: abbreviation table size