C++ PATCH: new ABI and testsuite

Mark Mitchell mark@codesourcery.com
Sun Feb 27 13:31:00 GMT 2000


This test doesn't make sense under the new ABI, so I arranged for it
not to be run.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

Index: testsuite/g++.old-deja/g++.mike/p11116.C
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/g++.old-deja/g++.mike/p11116.C,v
retrieving revision 1.2
diff -c -p -r1.2 p11116.C
*** p11116.C	1998/12/16 21:46:36	1.2
--- p11116.C	2000/02/27 21:28:30
***************
*** 2,7 ****
--- 2,13 ----
  // Special g++ Options: -Wno-pmf-conversions
  // prms-id: 11116
  
+ #if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100
+ // This test tests the rather strange property afforded one by G++ to
+ // peek inside a pointer-to-member, as if it were a structure.  We
+ // probably shouldn't allow that.  In any case, under the new ABI,
+ // the fields don't have the same names.
+ #else
  class Bar {
  public:
    int f(int a) { val = a; return val; }
*************** void foo() {
*** 20,22 ****
--- 26,29 ----
    p = (int (*)(void*,int))((void (*)())((bp).__pfn_or_delta2.__pfn));
    a = (*p)(&bar, 4);
  }
+ #endif


More information about the Gcc-patches mailing list