xref: /llvm-project/llvm/test/DebugInfo/X86/invalid-unit-header.s (revision d840e5452315e69d44cfe44b766e633964681b6a)
16f635f90SIgor Kudrin# RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o - | \
26f635f90SIgor Kudrin# RUN:   llvm-dwarfdump -debug-info - | \
36f635f90SIgor Kudrin# RUN:   FileCheck %s
46f635f90SIgor Kudrin
5*d840e545SFangrui Song        .section .debug_abbrev.dwo,"e",@progbits
66f635f90SIgor Kudrin        .byte 0x01  # Abbrev code
76f635f90SIgor Kudrin        .byte 0x11  # DW_TAG_compile_unit
86f635f90SIgor Kudrin        .byte 0x00  # DW_CHILDREN_no
96f635f90SIgor Kudrin        .byte 0x13  # DW_AT_language
106f635f90SIgor Kudrin        .byte 0x05  # DW_FORM_data2
116f635f90SIgor Kudrin        .byte 0x00  # EOM(1)
126f635f90SIgor Kudrin        .byte 0x00  # EOM(2)
136f635f90SIgor Kudrin        .byte 0x00  # EOM(3)
146f635f90SIgor Kudrin
156f635f90SIgor Kudrin# The CU was considered valid even though there were some required fields
166f635f90SIgor Kudrin# missing in the header.
17*d840e545SFangrui Song        .section .debug_info.dwo,"e",@progbits
186f635f90SIgor Kudrin        .long .CUend - .CUver   # Length of Unit
196f635f90SIgor Kudrin.CUver:
206f635f90SIgor Kudrin        .short 5                # DWARF version number
216f635f90SIgor Kudrin        .byte 5                 # DW_UT_split_compile
226f635f90SIgor Kudrin        .byte 4                 # Address Size (in bytes)
236f635f90SIgor Kudrin        # .long 0               # Missing: Offset Into Abbrev Section
246f635f90SIgor Kudrin        # .quad 0               # Missing: DWO id
256f635f90SIgor Kudrin        .byte 1                 # Abbreviation code
266f635f90SIgor Kudrin        .short 4                # DW_LANG_C_plus_plus
276f635f90SIgor Kudrin.CUend:
286f635f90SIgor Kudrin
296f635f90SIgor Kudrin# CHECK-NOT: Compile Unit:
30