1 ; RUN: opt -passes=bdce -S < %s | FileCheck %s
3 declare i32 @strlen(i8*) readonly nounwind willreturn
6 call i32 @strlen( i8* null )
14 define i32 @test2() personality i32 (...)* @__gxx_personality_v0 {
15 ; invoke of pure function should not be deleted!
16 invoke i32 @strlen( i8* null ) readnone
17 to label %Cont unwind label %Other
23 %exn = landingpad {i8*, i32}
32 declare i32 @__gxx_personality_v0(...)