URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [Wstrict-overflow-17.c] - Rev 298
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-fstrict-overflow -O2 -Wstrict-overflow" } */ /* This erroneously gave an overflow warning. */ extern void bar (char); void foo (char *s) { int len, i; for (len = 1; len < 5000; ++len) { for (i = 0; i < len; ++i) { if (s[i] != '\0') bar (s[i]); } } }