44 lines · plain
1# RUN: llvm-mc %s -filetype obj -triple x86_64-unknown-linux-gnu -o - \2# RUN: | not llvm-dwarfdump -verify - \3# RUN: | FileCheck %s4 5# CHECK: Verifying .debug_abbrev...6# CHECK-NEXT: error: Abbreviation declaration contains multiple DW_AT_stmt_list attributes.7# CHECK-NEXT:[1] DW_TAG_compile_unit DW_CHILDREN_no8# CHECK-NEXT: DW_AT_stmt_list DW_FORM_sec_offset9# CHECK-NEXT: DW_AT_GNU_dwo_name DW_FORM_strp10# CHECK-NEXT: DW_AT_stmt_list DW_FORM_strp{{[[:space:]]}}11# CHECK-NEXT: error: Abbreviation declaration contains multiple DW_AT_producer attributes.12# CHECK-NEXT:[1] DW_TAG_compile_unit DW_CHILDREN_yes13# CHECK-NEXT: DW_AT_GNU_dwo_name DW_FORM_GNU_str_index14# CHECK-NEXT: DW_AT_producer DW_FORM_GNU_str_index15# CHECK-NEXT: DW_AT_producer DW_FORM_data216 17 18 .section .debug_abbrev,"",@progbits19 .byte 1 # Abbreviation Code20 .byte 17 # DW_TAG_compile_unit21 .byte 0 # DW_CHILDREN_no22 .byte 16 # DW_AT_stmt_list23 .byte 23 # DW_FORM_sec_offset24 .ascii "\260B" # DW_AT_GNU_dwo_name25 .byte 14 # DW_FORM_strp26 .byte 16 # DW_AT_stmt_list -- Error: Abbreviation declaration contains multiple DW_AT_stmt_list attributes.27 .byte 14 # DW_FORM_strp28 .byte 0 # EOM(1)29 .byte 0 # EOM(2)30 .byte 0 # EOM(3)31 .section .debug_abbrev.dwo,"e",@progbits32 .byte 1 # Abbreviation Code33 .byte 17 # DW_TAG_compile_unit34 .byte 1 # DW_CHILDREN_yes35 .ascii "\260B" # DW_AT_GNU_dwo_name36 .ascii "\202>" # DW_FORM_GNU_str_index37 .byte 37 # DW_AT_producer38 .ascii "\202>" # DW_FORM_GNU_str_index39 .byte 37 # DW_AT_producer -- Error: Abbreviation declaration contains multiple DW_AT_producer attributes.40 .byte 5 # DW_FORM_data141 .byte 0 # EOM(1)42 .byte 0 # EOM(2)43 .byte 0 # EOM(3)44