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

     1  /* PR tree-optimization/52533 */
     2  
     3  int
     4  foo (unsigned char x)
     5  {
     6    if (x <= 9)
     7      return '0' + x;
     8    else if (x <= 15)
     9      return 'a' + (x - 10);
    10    else
    11      return 0;
    12  }
    13  
    14  void
    15  bar (unsigned char x, unsigned char *y)
    16  {
    17    y[0] = foo ((unsigned char) (x >> 4));
    18    y[1] = foo ((unsigned char) (x & 0x0f));
    19  }