* g++.dg/abi/vbase10.C: XFAIL on arm*-*-*.
authorMark Mitchell <mark@codesourcery.com>
Tue, 30 Dec 2003 19:36:51 +0000 (19:36 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 30 Dec 2003 19:36:51 +0000 (19:36 +0000)
From-SVN: r75241

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/vbase10.C

index 4bf92b6f2f6e0e386da07c177b2ac2ecd3d3fc42..b21ed54e29f764803744b456743c4f008bb5ed9b 100644 (file)
@@ -1,3 +1,7 @@
+2003-12-30  Mark Mitchell  <mark@codesourcery.com>
+
+       * g++.dg/abi/vbase10.C: XFAIL on arm*-*-*.
+
 2003-12-30  Kazu Hirata  <kazu@cs.umass.edu>
 
        * g++.old-deja/g++.jason/thunk2.C: Remove traces of dead
index 7683250ea5d48e59cc3868a2102f1769e3d671b8..bd03105ec1d8e241b4fe881b1e3c7f675c474471 100644 (file)
@@ -3,5 +3,11 @@
 
 struct A { virtual void f(); char c1; };
 struct B { B(); char c2; };
-struct C : public A, public virtual B {}; // { dg-warning "ABI" }
+// On ARM processors, the alignment of B will be 4 even though it
+// contains only a single "char".  That avoids the situation that the
+// warning below is designed to catch.  On ARM NetBSD, the alignment
+// of B will be only 1 -- but there is no way to tell DejaGNU that a
+// failure is expected on all ARM targets except arm*-*-netbsd*.
+// Therefore, this test will XPASS on arm*-*-netbsd*.
+struct C : public A, public virtual B {}; // { dg-warning "ABI" "" { xfail arm*-*-* } }