1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-ccp1" } */
4 // See pr19476-5.C for a version without including <new>.
8 return 33 + (0 == new(std::nothrow) int);
11 return 42 + (0 == new int[50]);
14 /* { dg-final { scan-tree-dump "return 42" "ccp1" } } */
15 /* { dg-final { scan-tree-dump-not "return 33" "ccp1" } } */
16 /* { dg-final { cleanup-tree-dump "ccp1" } } */