aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr116997.c
blob: 4563fc2bfb6f86d4e8adc7160b71760003479c9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR 116997.  */
struct S0
{
  unsigned f0;
  signed f2 : 11;
  signed : 6;
} GlobS, *Ptr = &GlobS;

const struct S0 Initializer = {7, 3};

int main (void)
{
  for (unsigned i = 0; i <= 2; i++)
    *Ptr = Initializer;
  if (GlobS.f2 != 3)
    __builtin_abort ();
  return 0;
}