aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/MC/ELF/cfi-scope-errors2.s
blob: d29c05636d0df31fac38aed1f728587280f9fa1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Test for D51695 ensuring there is no crash when two .cfi_startproc are opened
# without the first one being closed.

# RUN: not llvm-mc %s -filetype=obj -triple=x86_64-unknown-linux -o /dev/null 2>&1 | FileCheck %s

.text
 .cfi_startproc

.text
 .cfi_startproc
# CHECK: [[#@LINE]]:1: error: starting new .cfi frame before finishing the previous one

 .cfi_endproc