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