* g++.dg/abi/offsetof.C: Fix size comparison.
authorRichard Henderson <rth@redhat.com>
Mon, 4 Feb 2002 18:27:59 +0000 (10:27 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 4 Feb 2002 18:27:59 +0000 (10:27 -0800)
From-SVN: r49487

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

index 3aeb21c356b4c6c86255d166001084762371ea31..c27aab8152896113e511b6b96ef2a729317b893f 100644 (file)
@@ -1,3 +1,7 @@
+2002-02-04  Richard Henderson  <rth@redhat.com>
+
+       * g++.dg/abi/offsetof.C: Fix size comparison.
+
 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
 
        * gcc.dg/cast-qual-2.c: New test.
index 8a2e732c9ff251954f8bd99c0dc6d002a557a6b4..96f5796ec95462845ef39e9e9ec142708a7eec2e 100644 (file)
@@ -18,5 +18,5 @@ struct C: public B { };
 
 int main ()
 {
-  return ((unsigned long) &((C*)0)->i) != 4; // { dg-warning "offsetof" "" }
+  return ((unsigned long) &((C*)0)->i) != sizeof(void*); // { dg-warning "offsetof" "" }
 }