llvm-6502/test/Transforms/DeadStoreElimination/2005-11-30-vaarg.ll

10 lines
268 B
LLVM
Raw Normal View History

; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | grep store
double %foo(sbyte* %X) {
%X_addr = alloca sbyte*
store sbyte* %X, sbyte** %X_addr ;; not a dead store.
%tmp.0 = va_arg sbyte** %X_addr, double
ret double %tmp.0
}