Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / Wstrict-overflow-17.c
blob5625bc2a7f3c74a01a8d6f960c96bf5c151acc88
1 /* { dg-do compile } */
2 /* { dg-options "-fstrict-overflow -O2 -Wstrict-overflow" } */
4 /* This erroneously gave an overflow warning. */
6 extern void bar (char);
7 void
8 foo (char *s)
10 int len, i;
12 for (len = 1; len < 5000; ++len)
14 for (i = 0; i < len; ++i)
16 if (s[i] != '\0')
17 bar (s[i]);