summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.bob/packed1.C
blob: 91e2d3c260eef3bf0b376e02156410d706dd81a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { 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;
    }
}