resurrect lost tests by renaming them to not end with .tr
[oota-llvm.git] / test / CFrontend / 2004-02-13-IllegalVararg.c
diff --git a/test/CFrontend/2004-02-13-IllegalVararg.c b/test/CFrontend/2004-02-13-IllegalVararg.c
new file mode 100644 (file)
index 0000000..1f3eded
--- /dev/null
@@ -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;
+}