aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/vect/pr51074.c
blob: 309139994003f6388b5a5f894ed710098a8c4b75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* PR tree-optimization/51074 */

#include "tree-vect.h"

struct S { int a, b; } s[8];

int
main ()
{
  int i;
  check_vect ();
  for (i = 0; i < 8; i++)
    {
      s[i].b = 0;
      s[i].a = i;
    }
  asm volatile ("" : : : "memory");
  for (i = 0; i < 8; i++)
    if (s[i].b != 0 || s[i].a != i)
      abort ();
  return 0;
}

/* { dg-final { cleanup-tree-dump "vect" } } */