xref: /llvm-project/llvm/test/tools/llvm-dwp/X86/wrong-unit-type-info-v4.s (revision 595b1683b79be089c3f72e7b3dcee4d1a9f6327b)
1# RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o %t.dwp
2# RUN: not llvm-dwp %t.dwp -o %t 2>&1 | FileCheck %s
3
4# CHECK: error: {{.*}}: top level DIE is not a compile unit
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	4                               # DWARF version number
9  .long	0                               # Offset Into Abbrev. Section
10  .byte	8                               # Address Size (in bytes)
11  .byte	1                               # Abbrev [1] 0xb:0x1 DW_TAG_string_type
12.Ldebug_info_dwo_end0:
13  .section	.debug_abbrev.dwo,"e",@progbits
14  .byte	1                               # Abbreviation Code
15  .byte	18                              # DW_TAG_string_type
16