1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 16:33:37 +01:00
llvm-mirror/test/FrontendC/2004-02-13-IllegalVararg.c

14 lines
197 B
C
Raw Normal View History

2008-06-12 23:23:38 +02:00
// RUN: %llvmgcc -xc %s -w -c -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;
}