(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
Wstringop-overflow-84.c
       1  /* PR middle-end/102960 - ICE: in sign_mask, at wide-int.h:855 in GCC 10.3.0
       2     { dg-do compile }
       3     { dg-options "-Og -Wall" } */
       4  
       5  void f (int i)
       6  {
       7    const char *s;
       8    if (i)
       9      s = &"abcd"[i];
      10  
      11    __builtin_printf ("%s", s);
      12  }
      13  
      14  /* The use of s in the call to sprintf should result in:
      15     { dg-prune-output "-Wmaybe-uninitialized" } */