| 1 |
/* PR tree-optimization/32139 */ |
| 2 |
/* { dg-require-effective-target indirect_calls } */ |
| 3 |
|
| 4 |
int foo (void); |
| 5 |
int bar (void) __attribute__ ((const)); |
| 6 |
|
| 7 |
int |
| 8 |
test (int x) |
| 9 |
{ |
| 10 |
int a = (x == 10000 ? foo : bar) (); |
| 11 |
int b = (x == 10000 ? foo : bar) (); |
| 12 |
return a + b; |
| 13 |
} |