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

     1  int sprintf (char *s, const char *format, ...);
     2  
     3  int foo(int i, int j)
     4  {
     5     char *buf, *str;
     6  
     7     if (i)
     8       str = "";
     9     else if (j)
    10       str = "";
    11     else
    12       return 1;
    13  
    14     /* We were propagating &""[0] here and not calling fold_stmt with a
    15        proper statement pointer.  */
    16     sprintf(buf, str);
    17     return 0;
    18  }