llvm-6502/test/CodeGen/CBackend/2003-10-23-ZeroArgVarargs.ll
2006-12-02 04:23:10 +00:00

13 lines
230 B
LLVM

; XFAIL: *
; RUN: llvm-upgrade < %s | llvm-as | llc -march=c
declare sbyte* %llvm.va_start()
declare void %llvm.va_end(sbyte*)
void %test(...) {
%P = call sbyte* %llvm.va_start()
call void %llvm.va_end(sbyte* %P)
ret void
}