/* { dg-do compile } */ /* { dg-options "-O3 -fcheck-new -fdump-tree-optimized -fno-allocation-dce" } */ #include int g(){ return 42 + (0 == new int); } /* { dg-final { scan-tree-dump-not "return 42" "optimized" } } */