summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-packed-1.c
blob: 65191636b5cd25afeb07fd9de1cc052374276c8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
packed-1.c from the execute part of the gcc torture tests.
*/

#include <testfwk.h>

short x1 = 17;

struct
{
  short i ;
} t;

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

void
testTortureExecute (void)
{
  f ();
  return;
}