Debian Codegraph @

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

raw
1 // { dg-do run }
2 int
3 main() {
4 struct s
5 {
6 int a;
7 short b;
8 } __attribute__((packed)) t;
9
10 if (sizeof (t) != (sizeof(int)+sizeof(short)))
11 {
12 return 1;
13 }
14 else
15 {
16 return 0;
17 }
18 }