llvm-6502/test/Transforms/ADCE/dce_pure_call.ll

10 lines
180 B
LLVM
Raw Normal View History

; RUN: llvm-as < %s | opt -adce | llvm-dis | not grep call
declare int %strlen(sbyte*)
void %test() {
;; Dead call should be deleted!
call int %strlen(sbyte *null)
ret void
}