summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr34017.c
blob: ee279b7c8df897bb7632be5323aea9ddd28588f5 (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
25
26
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-loop-linear" } */

extern int s;

void
foo (int *x, int y, int z)
{
 int m, n;
 int o;
 int p = x[0];
 o = s;
 for (m = 0; m < s; m++)
   for (n = 0; n < s; n++)
     {
       if (x[n] != p)
         continue;
       if (m > z)
         z = m;
       if (n < o)
         o = n;
     }
 for (m = y; m <= z; m++)
   {
   }
}