new testcases that simplifycfg breaks

llvm-svn: 7598
This commit is contained in:
Chris Lattner 2003-08-05 16:11:36 +00:00
parent 8cedc4ffa6
commit e465467534
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
}