new testcase
[oota-llvm.git] / test / Transforms / PruneEH / simpletest.llx
1 ; RUN: llvm-as < %s | opt -prune-eh | llvm-dis | not grep invoke
2
3 implementation
4
5 internal void %foo() {
6         ret void            ; does not throw
7 }
8
9 int %caller() {
10         invoke void %foo() to label %Normal except label %Except
11 Normal:
12         ret int 0
13 Except:
14         ret int 1
15 }