xref: /llvm-project/llvm/test/DebugInfo/X86/eh-frame-truncated.s (revision 2569787e44595d31942da2bb5558931351929e57)
1*2569787eSGeorgii Rymar## Check we report a proper error when the content
2*2569787eSGeorgii Rymar## of the .eh_frame section is truncated.
3*2569787eSGeorgii Rymar
4*2569787eSGeorgii Rymar# RUN: llvm-mc -triple x86_64 %s -filetype=obj -o %t
5*2569787eSGeorgii Rymar# RUN: not llvm-dwarfdump -debug-frame %t 2>&1 | FileCheck %s
6*2569787eSGeorgii Rymar
7*2569787eSGeorgii Rymar# CHECK: error: unexpected end of data at offset 0x4
8*2569787eSGeorgii Rymar
9*2569787eSGeorgii Rymar.section .eh_frame,"a",@unwind
10*2569787eSGeorgii Rymar.long 0xFF ## Length
11