aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-12-30 19:36:51 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-12-30 19:36:51 +0000
commitb6d904612e54d55c2bbdb6751d96dc87b3c6d458 (patch)
treee7a5b79002ba63f1cbe45f185a9a44a7fb0a2274
parent22dc9b06c00b707684799a5f933e660fc5915d7d (diff)
downloadgcc-b6d904612e54d55c2bbdb6751d96dc87b3c6d458.zip
gcc-b6d904612e54d55c2bbdb6751d96dc87b3c6d458.tar.gz
gcc-b6d904612e54d55c2bbdb6751d96dc87b3c6d458.tar.bz2
* g++.dg/abi/vbase10.C: XFAIL on arm*-*-*.
From-SVN: r75241
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.dg/abi/vbase10.C8
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4bf92b6..b21ed54 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/g++.dg/abi/vbase10.C b/gcc/testsuite/g++.dg/abi/vbase10.C
index 7683250..bd03105 100644
--- a/gcc/testsuite/g++.dg/abi/vbase10.C
+++ b/gcc/testsuite/g++.dg/abi/vbase10.C
@@ -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*-*-* } }