aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr47140.c
blob: 2adf53c2026a3e9637dec9d219fbfbca4e14a2dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* PR tree-optimization/47140 */

static inline int
foo (int x, short y)
{
  return y == 0 ? x : x + y;
}

static inline unsigned short
bar (unsigned short x, unsigned char y)
{
  return x - y;
}

int w;

int baz (void);

int
test (void)
{
  int i;
  for (i = 0; i < 50; i++)
    w += foo ((unsigned char) (1 + baz ()) >= bar (0, 1), 0);
}