Tighten condition in vect/pr85586.c (PR 85654)
[official-gcc.git] / gcc / testsuite / gcc.dg / Warray-bounds-13.c
blob7b40a83887de76addd517e947ac9e475cdcff566
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -Warray-bounds" } */
4 extern char *bar[17];
6 int foo(int argc, char **argv)
8 int i;
9 int n = 0;
11 for (i = 0; i < argc; i++)
12 n++;
14 for (i = 0; i < argc; i++)
15 argv[i] = bar[i + n]; /* { dg-bogus "above array bounds" } */
17 return 0;