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