| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O -fdump-tree-gimple" } */ |
| 3 |
|
| 4 |
int f(int a,int b){ |
| 5 |
// The front-end should not fold this to 0. |
| 6 |
int c = __builtin_constant_p(a < b); |
| 7 |
return c; |
| 8 |
} |
| 9 |
|
| 10 |
/* { dg-final { scan-tree-dump "__builtin_constant_p" "gimple" } } */ |