llvm/test/FrontendC/2004-02-13-IllegalVararg.c
Evan Cheng 933b5065e5 Fix some tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52245 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-12 21:23:38 +00:00

12 lines
171 B
C

// RUN: %llvmgcc -xc %s -w -c -o - | llc
#include <stdarg.h>
float test(int X, ...) {
va_list ap;
float F;
va_start(ap, X);
F = va_arg(ap, float);
return F;
}