xref: /llvm-project/llvm/test/tools/llvm-dwp/X86/invalid_tu_header_length.s (revision 595b1683b79be089c3f72e7b3dcee4d1a9f6327b)
1# RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o %t.o \
2# RUN:         -split-dwarf-file=%t.dwo -dwarf-version=5
3# RUN: not llvm-dwp %t.dwo -o %t.dwp 2>&1 | FileCheck %s
4
5# CHECK: error: type unit is missing type offset
6    .section	.debug_info.dwo,"e",@progbits
7    .long	.Ldebug_info_dwo_end0-.Ldebug_info_dwo_start0 # Length of Unit
8.Ldebug_info_dwo_start0:
9    .short	5                               # DWARF version number
10    .byte	6                               # DWARF Unit Type (DW_UT_split_type)
11    .byte	8                               # Address Size (in bytes)
12    .long	0                               # Offset Into Abbrev. Section
13    .quad	5657452045627120676             # Type Signature
14.Ldebug_info_dwo_end0:
15
16