This should always be signed chars, so use int8_t. This fixes a miscompile when
[llvm/stm8.git] / test / FrontendC / 2004-02-13-IllegalVararg.c
blob0d003c8033ca4032934c810494860ae1cfc2647f
1 // RUN: %llvmgcc -xc %s -w -S -o - | llc
2 // XFAIL: *
3 // See PR2452
5 #include <stdarg.h>
7 float test(int X, ...) {
8 va_list ap;
9 float F;
10 va_start(ap, X);
11 F = va_arg(ap, float);
12 return F;