diff options
Diffstat (limited to 'test/FrontendC/2004-02-13-IllegalVararg.c')
-rw-r--r-- | test/FrontendC/2004-02-13-IllegalVararg.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/FrontendC/2004-02-13-IllegalVararg.c b/test/FrontendC/2004-02-13-IllegalVararg.c new file mode 100644 index 0000000..21039c6 --- /dev/null +++ b/test/FrontendC/2004-02-13-IllegalVararg.c @@ -0,0 +1,13 @@ +// 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; +} |