1 ; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
2 ; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s
4 declare i32 @maybe_throwing_callee()
6 ; CHECK-ALL: declare void @did_not_throw(i32)
7 declare void @did_not_throw(i32)
11 ; CHECK-ALL: define void @caller()
12 define void @caller() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
15 ; CHECK-INTERESTINGNESS: label %bb3
16 ; CHECK-FINAL: br label %bb3
17 %i0 = invoke i32 @maybe_throwing_callee()
18 to label %bb3 unwind label %bb1
21 landingpad { i8*, i32 } catch i8* null
27 ; CHECK-INTERESTINGNESS: call void @did_not_throw(i32
28 ; CHECK-FINAL: call void @did_not_throw(i32 undef)
29 ; CHECK-ALL: br label %bb4
30 call void @did_not_throw(i32 %i0)
39 declare i32 @__gxx_personality_v0(...)