aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2004-02-13-IllegalVararg.c
blob: 0d003c8033ca4032934c810494860ae1cfc2647f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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;
}