llvm-project/llvm/test/FrontendC/2004-02-13-IllegalVararg.c

14 lines
197 B
C

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