summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr58570.c
blob: 28b6efe8f9503ac5d115ebc976f48e1049fe0379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-require-effective-target int32plus } */
#pragma pack(1)
struct S
{
  int f0:15;
  int f1:29;
};

int e = 1, i;
static struct S d[6];

int
main (void)
{
  if (e)
    {
      d[i].f0 = 1;
      d[i].f1 = 1;
    }
  if (d[0].f1 != 1)
    __builtin_abort ();
  return 0;
}