Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/tree-ssa/pr19476-1.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* { dg-do compile } */ | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O -fdump-tree-ccp1 -fdelete-null-pointer-checks" } */ | 2 /* { dg-options "-O -fdump-tree-dom2 -fdelete-null-pointer-checks" } */ |
3 /* { dg-skip-if "" keeps_null_pointer_checks } */ | 3 /* { dg-skip-if "" keeps_null_pointer_checks } */ |
4 | 4 |
5 // See pr19476-5.C for a version without including <new>. | 5 // See pr19476-5.C for a version without including <new>. |
6 #include <new> | 6 #include <new> |
7 | 7 |
10 } | 10 } |
11 int g(){ | 11 int g(){ |
12 return 42 + (0 == new int[50]); | 12 return 42 + (0 == new int[50]); |
13 } | 13 } |
14 | 14 |
15 /* { dg-final { scan-tree-dump "return 42" "ccp1" } } */ | 15 /* { dg-final { scan-tree-dump "return 42" "dom2" } } */ |
16 /* { dg-final { scan-tree-dump-not "return 33" "ccp1" } } */ | 16 /* { dg-final { scan-tree-dump-not "return 33" "dom2" } } */ |