Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / PruneEH / recursivetest.llx
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -prune-eh | llvm-dis | not grep invoke
2
3 implementation
4
5 internal int %foo() {
6         invoke int %foo() to label %Normal except label %Except
7 Normal:
8         ret int 12
9 Except:
10         ret int 123
11 }
12
13 int %caller() {
14         invoke int %foo() to label %Normal except label %Except
15 Normal:
16         ret int 0
17 Except:
18         ret int 1
19 }