1*93aee9caSSourabh Singh Tomar## This test checks that llvm-dwarfdump produces error message 2*93aee9caSSourabh Singh Tomar## while parsing an *_strx form, if units contribution to 3*93aee9caSSourabh Singh Tomar## debug_macro[.dwo] section is missing. 4*93aee9caSSourabh Singh Tomar 5*93aee9caSSourabh Singh Tomar# RUN: llvm-mc -triple x86_64-unknown-linux -filetype=obj %s -o -| \ 6*93aee9caSSourabh Singh Tomar# RUN: not llvm-dwarfdump -debug-macro - /dev/null 2>&1 | FileCheck %s 7*93aee9caSSourabh Singh Tomar 8*93aee9caSSourabh Singh Tomar# CHECK: error: Macro contribution of the unit not found 9*93aee9caSSourabh Singh Tomar .section .debug_abbrev,"",@progbits 10*93aee9caSSourabh Singh Tomar .byte 1 # Abbreviation Code 11*93aee9caSSourabh Singh Tomar .byte 17 # DW_TAG_compile_unit 12*93aee9caSSourabh Singh Tomar .byte 0 # DW_CHILDREN_no 13*93aee9caSSourabh Singh Tomar .byte 0 # EOM(1) 14*93aee9caSSourabh Singh Tomar .byte 0 # EOM(2) 15*93aee9caSSourabh Singh Tomar .byte 0 # EOM(3) 16*93aee9caSSourabh Singh Tomar 17*93aee9caSSourabh Singh Tomar .section .debug_info,"",@progbits 18*93aee9caSSourabh Singh Tomar.Lcu_begin0: 19*93aee9caSSourabh Singh Tomar .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit 20*93aee9caSSourabh Singh Tomar.Ldebug_info_start0: 21*93aee9caSSourabh Singh Tomar .short 5 # DWARF version number 22*93aee9caSSourabh Singh Tomar .byte 1 # DWARF Unit Type 23*93aee9caSSourabh Singh Tomar .byte 8 # Address Size (in bytes) 24*93aee9caSSourabh Singh Tomar .long .debug_abbrev # Offset Into Abbrev. Section 25*93aee9caSSourabh Singh Tomar .byte 1 # Abbrev [1] 0xc:0x12 DW_TAG_compile_unit 26*93aee9caSSourabh Singh Tomar.Ldebug_info_end0: 27*93aee9caSSourabh Singh Tomar 28*93aee9caSSourabh Singh Tomar .section .debug_macro,"",@progbits 29*93aee9caSSourabh Singh Tomar.Lcu_macro_begin0: 30*93aee9caSSourabh Singh Tomar .short 5 # Macro information version 31*93aee9caSSourabh Singh Tomar .byte 0 # Flags: 32 bit 32*93aee9caSSourabh Singh Tomar .byte 11 # DW_MACRO_define_strx 33