1; RUN: opt < %s -adce -S | grep null
2
3declare i32 @strlen(i8*) readnone
4
5define i32 @test() {
6	; invoke of pure function should not be deleted!
7	invoke i32 @strlen( i8* null ) readnone
8			to label %Cont unwind label %Other		; <i32>:1 [#uses=0]
9
10Cont:		; preds = %0
11	ret i32 0
12
13Other:		; preds = %0
14         %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
15                  cleanup
16	ret i32 1
17}
18
19declare i32 @__gxx_personality_v0(...)
20