testcase that causes the asmparser to assert

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30969 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-10-15 23:26:28 +00:00
parent f53104051e
commit 1d4b6bfd3e

View File

@ -0,0 +1,9 @@
; RUN: not llvm-as %s -o /dev/null -f &&
; RUN: llvm-as %s -o /dev/null -f 2>&1 | grep 'Cannot form'
int %main() {
%foo = call sbyte* %llvm.stacksave()
%foop = cast sbyte* %foo to label*
%nret = load label* %foop
br label %nret;
}