Commit 72db02bf by Richard Henderson Committed by Richard Henderson

* g++.dg/abi/offsetof.C: Fix size comparison.

From-SVN: r49487
parent 563c12b0
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.
......
......@@ -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" "" }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment