1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 13:02:52 +02:00
llvm-mirror/test/Transforms/LowerInvoke/2003-12-10-Crash.ll

23 lines
547 B
LLVM
Raw Normal View History

2003-12-10 21:18:09 +01:00
; This testcase was reduced from Shootout-C++/reversefile.cpp by bugpoint
; RUN: opt < %s -lowerinvoke -disable-output
2003-12-10 21:18:09 +01:00
2008-03-19 08:28:33 +01:00
declare void @baz()
2003-12-10 21:18:09 +01:00
2008-03-19 08:28:33 +01:00
declare void @bar()
2003-12-10 21:18:09 +01:00
2008-03-19 08:28:33 +01:00
define void @foo() {
then:
invoke void @baz( )
to label %invoke_cont.0 unwind label %try_catch
2003-12-10 21:18:09 +01:00
invoke_cont.0: ; preds = %then
2008-03-19 08:28:33 +01: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-10 21:18:09 +01:00
ret void
try_exit: ; preds = %invoke_cont.0
ret void
}
2008-03-19 08:28:33 +01:00