| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O -fdump-tree-forwprop3" } */ |
| 3 |
|
| 4 |
static int a, b; |
| 5 |
int foo (int n, int which) |
| 6 |
{ |
| 7 |
void *p = __builtin_malloc (n); |
| 8 |
void *q = which ? &a : &b; |
| 9 |
return p == q; |
| 10 |
} |
| 11 |
|
| 12 |
/* { dg-final { scan-tree-dump "return 0;" "forwprop3" } } */ |