1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/test/MC/X86/cfi-scope-unclosed.s
George Rimar fdb04128c9 [MC] - Don't crash on unclosed frame.
llvm-mc can crash when
there is cfi_startproc without cfi_end_proc:

.text
.globl foo
foo:
 .cfi_startproc

Testcase shows the issue, patch fixes it.

Differential revision: https://reviews.llvm.org/D43456

llvm-svn: 325564
2018-02-20 09:04:13 +00:00

11 lines
232 B
ArmAsm

# RUN: not llvm-mc %s -filetype=obj -triple=x86_64-unknown-linux \
# RUN: -o /dev/null 2>&1 | FileCheck %s
## Check we don't crash on unclosed frame scope.
# CHECK: error: Unfinished frame!
.text
.globl foo
foo:
.cfi_startproc