new testcases that simplifycfg breaks

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7598 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-08-05 16:11:36 +00:00
parent f4de783582
commit 5d6bdae118
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,9 @@
; Do not remove the invoke!
;
; RUN: as < %s | opt -simplifycfg -disable-output
int %test() {
%A = invoke int %test() to label %Ret except label %Ret
Ret:
ret int %A
}

View File

@ -0,0 +1,10 @@
; Do not remove the invoke!
;
; RUN: as < %s | opt -simplifycfg | dis | grep invoke
int %test() {
invoke int %test() to label %Ret except label %Ret
Ret:
%A = add int 0, 1
ret int %A
}