blob: 21039c6b0fa9b93a94a656ebd711ef05cce945b4 [file] [log] [blame]
Evan Cheng2d788ce2008-06-12 21:23:38 +00001// RUN: %llvmgcc -xc %s -w -c -o - | llc
Matthijs Kooijmanc5d12eb2008-06-13 16:52:35 +00002// XFAIL: *
Matthijs Kooijman261e9762008-06-16 09:38:23 +00003// See PR2452
Chris Lattner067b6bb2004-02-13 22:04:41 +00004
5#include <stdarg.h>
6
7float test(int X, ...) {
8 va_list ap;
9 float F;
10 va_start(ap, X);
11 F = va_arg(ap, float);
12 return F;
13}