blob: d23ee2b23d763aa2c2995341d1718fb785689046 [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +00001; RUN: opt < %s -ipsccp -S | grep {ret i32 42}
2; RUN: opt < %s -ipsccp -S | grep {ret i32 undef}
Chris Lattnerc27ce6d2009-01-14 21:01:16 +00003; PR3325
4
5define i32 @main() {
6 %tmp1 = invoke i32 @f()
7 to label %UnifiedReturnBlock unwind label %lpad
8
9lpad:
10 unreachable
11
12UnifiedReturnBlock:
13 ret i32 %tmp1
14}
15
16define internal i32 @f() {
17 ret i32 42
18}
19
20declare i8* @__cxa_begin_catch(i8*) nounwind
21
22declare i8* @llvm.eh.exception() nounwind
23
24declare i32 @llvm.eh.selector.i32(i8*, i8*, ...) nounwind
25
26declare void @__cxa_end_catch()
27
28declare i32 @__gxx_personality_v0(...)