summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr32139.c
blob: 7b8522f5174950185bc50caaf564447f38950a65 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR tree-optimization/32139 */
int foo (void);
int bar (void) __attribute__ ((const));

int
test (int x)
{
  int a = (x == 10000 ? foo : bar) ();
  int b = (x == 10000 ? foo : bar) ();
  return a + b;
}