]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.dg/other/stdarg1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.dg / other / stdarg1.C
diff --git a/gcc/testsuite/g++.dg/other/stdarg1.C b/gcc/testsuite/g++.dg/other/stdarg1.C
deleted file mode 100644 (file)
index 3b7718b..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-// Test stdarg function with anonymous argument
-// { dg-do run }
-
-#include <stdarg.h>
-
-extern "C" void abort (void);
-
-void baz (va_list list)
-{
-  if (va_arg (list, long) != 3)
-    abort ();
-}
-
-void foo (long p1, long, long p2, ...)
-{
-  va_list list;
-  va_start (list, p2);
-  baz (list);
-  va_end (list);
-}
-
-int main ()
-{
-  foo (0, 1, 2, 3);
-  return 0;
-}