aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr109410.c
blob: a6401fc100cad8f4f19d7f4481982a1ff9d4760b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR tree-optimization/109410 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

__attribute__((returns_twice)) int baz (int, int);

int
bar (int x)
{
  return x;
}

int
foo (int x, int y)
{
  baz (x, y);
  int a = bar (x);
  return y || a == 42 || a > 42;
}