xref: /llvm-project/llvm/test/DebugInfo/X86/debug_frame-invalid-cie-offset.s (revision f8122d35325d9a5d3db7d4c0d40bcdeae15bee5a)
1# RUN: llvm-mc -triple i386-unknown-linux %s -filetype=obj -o - | \
2# RUN:  not llvm-dwarfdump -debug-frame - 2>&1 | \
3# RUN:  FileCheck %s
4
5# CHECK: .debug_frame contents:
6# CHECK: 00000000 0000000c 12345678 FDE cie=<invalid offset> pc=00010000...00010010
7# CHECK: error: decoding the FDE opcodes into rows failed
8# CHECK: error: unable to get CIE for FDE at offset 0x0
9
10    .section .debug_frame,"",@progbits
11    .long   .LFDE0end-.LFDE0id  # Length
12.LFDE0id:
13    .long   0x12345678          # CIE pointer (invalid)
14    .long   0x00010000          # Initial location
15    .long   0x00000010          # Address range
16.LFDE0end:
17