Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
[llvm/avr.git] / test / Transforms / PruneEH / simpletest.ll
blob77c429dae6d60cccd5fe48fb80130bb38019415d
1 ; RUN: opt < %s -prune-eh -S | not grep invoke
3 declare void @nounwind() nounwind
5 define internal void @foo() {
6         call void @nounwind()
7         ret void
10 define i32 @caller() {
11         invoke void @foo( )
12                         to label %Normal unwind label %Except
14 Normal:         ; preds = %0
15         ret i32 0
17 Except:         ; preds = %0
18         ret i32 1