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

10 lines
195 B
LLVM
Raw Normal View History

; RUN: llvm-upgrade < %s | llvm-as | 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
}