Use opt -S instead of piping bitcode output through llvm-dis.
[oota-llvm.git] / test / Transforms / SCCP / 2009-01-14-IPSCCP-Invoke.ll
1 ; RUN: opt %s -ipsccp -S | grep {ret i32 42}
2 ; RUN: opt %s -ipsccp -S | grep {ret i32 undef}
3 ; PR3325
4
5 define i32 @main() {
6         %tmp1 = invoke i32 @f()
7                         to label %UnifiedReturnBlock unwind label %lpad
8
9 lpad:
10         unreachable
11
12 UnifiedReturnBlock:
13         ret i32 %tmp1
14 }
15
16 define internal i32 @f() {
17        ret i32 42
18 }
19
20 declare i8* @__cxa_begin_catch(i8*) nounwind
21
22 declare i8* @llvm.eh.exception() nounwind
23
24 declare i32 @llvm.eh.selector.i32(i8*, i8*, ...) nounwind
25
26 declare void @__cxa_end_catch()
27
28 declare i32 @__gxx_personality_v0(...)