testcases for PR1042

llvm-svn: 32625
This commit is contained in:
Chris Lattner 2006-12-16 02:26:57 +00:00
parent 697617709c
commit cff7b8a9ca
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,10 @@
; RUN: not llvm-as < %s -o /dev/null -f
; PR1042
int %foo() {
%A = invoke int %foo( )
to label %L unwind label %L ; <int> [#uses=1]
L: ; preds = %0, %0
ret int %A
}

View File

@ -0,0 +1,13 @@
; RUN: not llvm-as < %s -o /dev/null -f
; PR1042
int %foo() {
br bool false, label %L1, label %L2
L1:
%A = invoke int %foo() to label %L unwind label %L
L2:
br label %L
L:
ret int %A
}