From 99b4237c1647156f0e1d3d7e03efdab23ed79778 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 7 Jan 2012 03:13:18 +0000 Subject: 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 --- test/MC/AsmParser/cfi-unfinished-frame.s | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/MC/AsmParser/cfi-unfinished-frame.s (limited to 'test') diff --git a/test/MC/AsmParser/cfi-unfinished-frame.s b/test/MC/AsmParser/cfi-unfinished-frame.s new file mode 100644 index 0000000..1182d52 --- /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 -- cgit v1.1