aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/modref-7.c
blob: b55d7066b222b9161026f3a0c9ac309c223937fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-options "-O2 --param modref-max-accesses=1 -fdump-tree-modref1"  } */
/* { dg-do compile } */
struct a {
  int array[10];
  int tail;
};
int test(struct a *a, int p)
{
  a->array[p] = 0;
  a->array[0] = 1;
}
/* All three accesses combine to one bigger access.  */
/* { dg-final { scan-tree-dump-not "--param modref-max-accesses" "modref1" } } */