2 // { dg-options -Wold-style-cast }
4 // Copyright (C) 2003 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 22 Apr 2003 <nathan@codesourcery.com>
7 // DR273 POD can have an operator&, offsetof is still required to work
15 void *operator& () const {return 0;} // yes, still a pod!
23 void *operator& (POD2 const &) {return 0;} // ouch!
41 if (offsetof (POD3, m) != sizeof (int))
43 if (offsetof (POD4, m) != sizeof (int))