OSDN Git Service

* g++.old-deja/g++.jason/thunk3.C: XFAIL on m32r*-*.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / thunk3.C
index 6b309dd..e6d53fb 100644 (file)
@@ -1,6 +1,8 @@
-// Test that function calls using thunks work right.
-// Special g++ Options: -fvtable-thunks
-// excess errors test - XFAIL mips*-*-* alpha*-*-* rs6000-*-* powerpc-*-eabi m68k-*-coff m68k-motorola-sysv m88k-motorola-sysv3
+// { dg-do run { xfail rs6000-*-* powerpc-*-eabi m68k-*-coff mn10300-*-* v850-*-* sh-*-* sh64-*-* h8*-*-* xtensa-*-* m32r*-* } }
+// Test that variadic function calls using thunks work right.
+// Note that this will break on any target that uses the generic thunk
+//  support, because it doesn't support variadic functions.
+
 
 #include <stdarg.h>
 
@@ -12,7 +14,7 @@ struct A {
 
 class CBase {
 public:
-   void BaseFunc();
+   virtual void BaseFunc();
 };
 
 class MMixin {
@@ -47,7 +49,7 @@ void* test(MMixin& anExample)
   return anExample.MixinFunc(1,2,3,4,5,6,7,8,9).p;
 }
 
-main ()
+int main ()
 {
   CExample c;