1# RUN: llvm-mc --triple=x86_64-unknown-linux --filetype=obj --split-dwarf-file=%t.dwo -dwarf-version=5 %s -o %t.o 2# RUN: not llvm-dwp %t.dwo -o /dev/null 2>&1 | FileCheck %s 3 4# CHECK: error: no compile unit found in file: {{.*}}no_cu_found.s 5 .section .debug_info.dwo,"e",@progbits 6 .long .Ldebug_info_dwo_end0-.Ldebug_info_dwo_start0 # Length of Unit 7.Ldebug_info_dwo_start0: 8 .short 5 # DWARF version number 9 .byte 12 # DWARF Unit Type (DW_TAG_string_type, wrong type) 10 .byte 8 # Address Size (in bytes) 11 .long 0 # Offset Into Abbrev. Section 12 .quad -1173350285159172090 13 .byte 1 # Abbrev [1] 0x14:0x16 DW_TAG_compile_unit 14 .asciz "clang version 11.0.0" # DW_AT_producer 15 .short 12 # DW_AT_language 16 .asciz "int.c" # DW_AT_name 17 .asciz "int.dwo" # DW_AT_dwo_name 18 .byte 0 # End Of Children Mark 19.Ldebug_info_dwo_end0: 20 .section .debug_abbrev.dwo,"e",@progbits 21 .byte 1 # Abbreviation Code 22 .byte 17 # DW_TAG_compile_unit 23 .byte 1 # DW_CHILDREN_yes 24 .byte 37 # DW_AT_producer 25 .byte 8 # DW_FORM_string 26 .byte 19 # DW_AT_language 27 .byte 5 # DW_FORM_data2 28 .byte 3 # DW_AT_name 29 .byte 8 # DW_FORM_string 30 .byte 118 # DW_AT_dwo_name 31 .byte 8 # DW_FORM_string 32 .byte 0 # EOM(1) 33 .byte 0 # EOM(2) 34