1 # RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj | \
2 # RUN: not llvm-dwarfdump -verify - | FileCheck %s
4 # CHECK: Duplicate abbreviation code.
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 0 # Header: bucket count
45 .long 0 # Header: name count
46 .long .Lnames_abbrev_end0-.Lnames_abbrev_start0 # Header: abbreviation table size
47 .long 0 # Header: augmentation length
48 .long .Lcu_begin0 # Compilation unit 0
49 .Lnames_abbrev_start0:
50 .byte 46 # Abbrev code
51 .byte 46 # DW_TAG_subprogram
52 .byte 3 # DW_IDX_die_offset
53 .byte 19 # DW_FORM_ref4
54 .byte 0 # End of abbrev
55 .byte 0 # End of abbrev
56 .byte 46 # Abbrev code
57 .byte 46 # DW_TAG_subprogram
58 .byte 3 # DW_IDX_die_offset
59 .byte 19 # DW_FORM_ref4
60 .byte 0 # End of abbrev
61 .byte 0 # End of abbrev
62 .byte 0 # End of abbrev list