Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/pr55569.c

raw
1 /* { dg-options "-Wno-stringop-overflow -ftree-vectorize" } */
2 int *bar (void);
3
4 void
5 foo (void)
6 {
7 __INTPTR_TYPE__ x;
8 int *y = bar ();
9
10 /* The loop below may be optimized to a call to memset with a size
11 that's in excess of the maximum object size. This is diagnosed
12 by the -Wstringop-overflow option. */
13 for (x = -1 / sizeof (int); x; --x, ++y)
14 *y = 0;
15 }