Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / LowerInvoke / 2003-12-10-Crash.llx
1 ; This testcase was reduced from Shootout-C++/reversefile.cpp by bugpoint
2
3 ; RUN: llvm-upgrade < %s | llvm-as | opt -lowerinvoke -disable-output
4
5 declare void %baz()
6
7 declare void %bar()
8
9 void %foo() {
10 then:           ; preds = %entry
11         invoke void %baz( )
12                         to label %invoke_cont.0 except label %try_catch
13
14 invoke_cont.0:          ; preds = %then
15         invoke void %bar( )
16                         to label %try_exit except label %try_catch
17
18 try_catch:              ; preds = %then, %invoke_cont.0
19         %__tmp.0 = phi int* [ null, %invoke_cont.0 ], [ null, %then ]
20         ret void
21
22 try_exit:               ; preds = %invoke_cont.0
23         ret void
24 }