new tests
[oota-llvm.git] / test / Transforms / PruneEH / simpletest.llx
1 ; RUN: as < %s | opt -prune-eh | 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 }