Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/packed-1.c

raw
1 void abort (void);
2 void exit (int);
3
4 short x1 = 17;
5
6 struct
7 {
8 short i __attribute__ ((packed));
9 } t;
10
11 void
12 f ()
13 {
14 t.i = x1;
15 if (t.i != 17)
16 abort ();
17 }
18
19 int
20 main (void)
21 {
22 f ();
23 exit (0);
24 }