rt_gccstream/gcc/testsuite/g++.old-deja/g++.bob/packed1.C

19 lines
226 B
C

// { dg-do run }
int
main() {
struct s
{
int a;
short b;
} __attribute__((packed)) t;
if (sizeof (t) != (sizeof(int)+sizeof(short)))
{
return 1;
}
else
{
return 0;
}
}