Tighten condition in vect/pr85586.c (PR 85654)
[official-gcc.git] / gcc / testsuite / gcc.dg / Warray-bounds-20.c
blob727b7997abc6ebbda6b8cb83ff74a1dedc2404e3
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Warray-bounds" } */
4 int t[1];
5 int fct (int r, long e)
7 int d = 0;
8 if (r == 4)
9 r = 1;
10 if (e < -52)
11 d = r == 0 ? 1 : 2;
12 else
14 int i, n = 53;
15 if (__builtin_expect (e < 0, 0))
16 n += e;
17 for (i = 1 ; i < n / 64 + 1 ; i++)
18 t[i] = 0; /* { dg-bogus "array bounds" } */
20 return d;