summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/packed-1.c
blob: 9b226aeab9b49dab623b75945f2270914a0f8f39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
short x1 = 17;

struct
{
  short i __attribute__ ((packed));
} t;

f ()
{
  t.i = x1;
  if (t.i != 17)
    abort ();
}

main ()
{
  f ();
  exit (0);
}