diff options
-rw-r--r-- | test/CFrontend/2004-02-13-IllegalVararg.c.tr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CFrontend/2004-02-13-IllegalVararg.c.tr b/test/CFrontend/2004-02-13-IllegalVararg.c.tr new file mode 100644 index 0000000000..1f3eded0cd --- /dev/null +++ b/test/CFrontend/2004-02-13-IllegalVararg.c.tr @@ -0,0 +1,11 @@ +// RUN: %llvmgcc -xc %s -c -o - | llc + +#include <stdarg.h> + +float test(int X, ...) { + va_list ap; + float F; + va_start(ap, X); + F = va_arg(ap, float); + return F; +} |