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

     1  /* PR rtl-optimization/34132 */
     2  /* Testcase by Martin Michlmayr <tbm@cyrius.com> */
     3  
     4  static char *m = "%s%u.msg";
     5  extern void bar (int, const char *);
     6  void foo (short x, int y, int z)
     7  {
     8    if (x == 0)
     9      {
    10        bar (y, m);
    11        z = 1;
    12      }
    13    else if (x == 1)
    14      z = 0;
    15    bar (y, m);
    16    bar (z, "%d");
    17  }