2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bob / packed1.C
blob91e2d3c260eef3bf0b376e02156410d706dd81a1
1 // { dg-do run  }
2 int
3 main() {
4   struct s
5     {
6       int a;
7       short b;
8     } __attribute__((packed)) t;
10   if (sizeof (t) != (sizeof(int)+sizeof(short))) 
11     {
12       return 1;
13     }
14   else 
15     {
16       return 0;
17     }