1 /* { dg-options "-Wno-stringop-overflow -ftree-vectorize" } */
2 int *bar (void);
3 
4 void
foo(void)5 foo (void)
6 {
7   long 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 }
16