llvm-6502/test/Transforms/DeadStoreElimination/2005-11-30-vaarg.ll
2006-12-02 04:23:10 +00:00

10 lines
268 B
LLVM

; 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
}