]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.pt/vaarg3.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / vaarg3.C
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/vaarg3.C b/gcc/testsuite/g++.old-deja/g++.pt/vaarg3.C
deleted file mode 100644 (file)
index 46c9824..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-// Build don't link:
-// Copyright (C) 2000 Free Software Foundation
-// Contributed by Nathan Sidwell 22 June 2000 <nathan@codesourcery.com>
-
-#include <stdarg.h>
-
-struct A {
-  virtual ~A () {};
-};
-
-template <class Type>
-void PrintArgs (Type somearg, ...)
-{ 
-va_list argp;
-va_start (argp, somearg); // ERROR - cannot pass non-POD
-Type value;
-value = va_arg (argp, Type); // ERROR - cannot pass non-POD
-va_end (argp);
-}
-
-int main (void)
-{
-A dummy;
-PrintArgs (dummy, dummy); // ERROR - cannot pass non-POD
-return 0;
-}