| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O3 -fno-delete-null-pointer-checks -fdump-tree-optimized -fno-allocation-dce" } */ |
| 3 |
|
| 4 |
#include <new> |
| 5 |
|
| 6 |
int g(){ |
| 7 |
return 42 + (0 == new int); |
| 8 |
} |
| 9 |
|
| 10 |
/* { dg-final { scan-tree-dump-not "return 42" "optimized" } } */ |