Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 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 | } |