blob: 495099ae9449dd7bef6ea1b94cd2c61c915d4dd2 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; This testcase was reduced from Shootout-C++/reversefile.cpp by bugpoint
2
3; RUN: llvm-upgrade < %s | llvm-as | opt -lowerinvoke -disable-output
4
5declare void %baz()
6
7declare void %bar()
8
9void %foo() {
10then: ; preds = %entry
11 invoke void %baz( )
12 to label %invoke_cont.0 except label %try_catch
13
14invoke_cont.0: ; preds = %then
15 invoke void %bar( )
16 to label %try_exit except label %try_catch
17
18try_catch: ; preds = %then, %invoke_cont.0
19 %__tmp.0 = phi int* [ null, %invoke_cont.0 ], [ null, %then ]
20 ret void
21
22try_exit: ; preds = %invoke_cont.0
23 ret void
24}