Add execution tests of ARM EXT intrinsics
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / pr19476-1.C
blobcbdad90d16b4e6d577ffddc37ade9439ee4d96c4
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-ccp1" } */
4 // See pr19476-5.C for a version without including <new>.
5 #include <new>
7 int f(){
8   return 33 + (0 == new(std::nothrow) int);
10 int g(){
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" } } */