modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/compile/pr55569.c (about)

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