summaryrefslogtreecommitdiff
path: root/test/MC/AsmParser
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-01-07 03:13:18 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-01-07 03:13:18 +0000
commit99b4237c1647156f0e1d3d7e03efdab23ed79778 (patch)
treed42c2ee376e2ae4534420e024205edc6b7cca8fe /test/MC/AsmParser
parent977679d6034791fd48a344e5b990503ba50fc242 (diff)
downloadllvm-99b4237c1647156f0e1d3d7e03efdab23ed79778.tar.gz
llvm-99b4237c1647156f0e1d3d7e03efdab23ed79778.tar.bz2
llvm-99b4237c1647156f0e1d3d7e03efdab23ed79778.tar.xz
Split Finish into Finish and FinishImpl to have a common place to do end of
file error checking. Use that to error on an unfinished cfi_startproc. The error is not nice, but is already better than a segmentation fault. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147717 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/AsmParser')
-rw-r--r--test/MC/AsmParser/cfi-unfinished-frame.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/MC/AsmParser/cfi-unfinished-frame.s b/test/MC/AsmParser/cfi-unfinished-frame.s
new file mode 100644
index 0000000000..1182d52bae
--- /dev/null
+++ b/test/MC/AsmParser/cfi-unfinished-frame.s
@@ -0,0 +1,5 @@
+// RUN: not llvm-mc -filetype=asm -triple x86_64-pc-linux-gnu %s -o %t 2>%t.out
+// RUN: FileCheck -input-file=%t.out %s
+
+.cfi_startproc
+// CHECK: Unfinished frame