1 /* PR tree-optimization/52533 */
2 
3 int
foo(unsigned char x)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
bar(unsigned char x,unsigned char * y)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 }
20