llvm-project/llvm/test/Transforms/LowerInvoke/2003-12-10-Crash.ll

23 lines
547 B
LLVM
Raw Normal View History

2003-12-11 04:18:09 +08:00
; This testcase was reduced from Shootout-C++/reversefile.cpp by bugpoint
; RUN: opt < %s -lowerinvoke -disable-output
2003-12-11 04:18:09 +08:00
2008-03-19 15:28:33 +08:00
declare void @baz()
2003-12-11 04:18:09 +08:00
2008-03-19 15:28:33 +08:00
declare void @bar()
2003-12-11 04:18:09 +08:00
2008-03-19 15:28:33 +08:00
define void @foo() {
then:
invoke void @baz( )
to label %invoke_cont.0 unwind label %try_catch
2003-12-11 04:18:09 +08:00
invoke_cont.0: ; preds = %then
2008-03-19 15:28:33 +08:00
invoke void @bar( )
to label %try_exit unwind label %try_catch
try_catch: ; preds = %invoke_cont.0, %then
%__tmp.0 = phi i32* [ null, %invoke_cont.0 ], [ null, %then ] ; <i32*> [#uses=0]
2003-12-11 04:18:09 +08:00
ret void
try_exit: ; preds = %invoke_cont.0
ret void
}
2008-03-19 15:28:33 +08:00