3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 15 Jul 2003 <nathan@codesourcery.com>
6 // Packed fields are unsuitable for direct reference binding.
8 struct Unpacked { int i; };
11 void Ref (Unpacked &p);
13 struct __attribute__ ((packed)) Packed
22 Ref (p.i); // { dg-error "cannot bind packed field" "" { target { ! default_packed } } }
23 Ref (p.u.i); // { dg-error "cannot bind packed field" "" { target { ! default_packed } } }
24 Ref (p.u); // { dg-error "cannot bind packed field" "" { target { ! default_packed } } }