mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
205b641954
input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. llvm-svn: 81537
16 lines
311 B
LLVM
16 lines
311 B
LLVM
; RUN: opt < %s -adce -S | grep null
|
|
|
|
declare i32 @strlen(i8*) readnone
|
|
|
|
define i32 @test() {
|
|
; invoke of pure function should not be deleted!
|
|
invoke i32 @strlen( i8* null ) readnone
|
|
to label %Cont unwind label %Other ; <i32>:1 [#uses=0]
|
|
|
|
Cont: ; preds = %0
|
|
ret i32 0
|
|
|
|
Other: ; preds = %0
|
|
ret i32 1
|
|
}
|