1 /* { dg-do compile } */
3 /* Copyright (C) 2003 Free Software Foundation, Inc.
4 Contributed by Nathan Sidwell 15 Jul 2003 <nathan@codesourcery.com> */
6 /* you should not be able to pack a typedef to a struct, only the
7 underlying struct can be packed. */
22 } __attribute__ ((packed
)) p1_t1
;
25 typedef struct __attribute__ ((packed
)) p2
{
31 int ary1
[sizeof (struct p1
) == sizeof (p1_t1
) ? 1 : -1];
32 int ary2
[sizeof (struct p2
) == sizeof (p2_t1
) ? 1 : -1];
33 int ary3
[sizeof (struct p1
) == sizeof (struct p2
) ? 1 : -1];
36 typedef struct u1
__attribute__ ((packed
)) u1_t1
; /* { dg-warning "attribute ignored" "" }*/
37 typedef struct u1 u1_t2
__attribute__ ((packed
)); /* { dg-warning "attribute ignored" "" }*/
43 } p3_t1
__attribute__ ((packed
)); /* { dg-warning "attribute ignored" "" }*/