summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr25481.c
blob: 3072e5ecb76d081073db64ff9a683207ec546ddd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */

struct s {
  int *blah;
};

static struct s array[] = {
  { 0 }
};

void
foo (struct s *p)
{
  unsigned int n = 1;
  struct s *q = &array[n];
  while (p < q)
    p++;
}