Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/tree-ssa/pr31146-2.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 -fno-tree-vrp -fdump-tree-forwprop1" } */ | 2 /* { dg-options "-O -fcheck-new -fno-tree-vrp -fdump-tree-forwprop1" } */ |
3 | 3 |
4 #include <new> | 4 #include <new> |
5 | 5 |
6 template <class T> | 6 template <class T> |
7 struct Vec | 7 struct Vec |
18 { | 18 { |
19 Vec<double> v; | 19 Vec<double> v; |
20 return v.a[2]; | 20 return v.a[2]; |
21 } | 21 } |
22 | 22 |
23 /* -std=c++17 and above doesn't emit operator new () != NULL, so there is | 23 /* GCC 8 emits operator new () != NULL with -fcheck-new. */ |
24 nothing to fold anymore. */ | 24 /* { dg-final { scan-tree-dump "Replaced .* != 0B. with .1" "forwprop1" } } */ |
25 /* { dg-final { scan-tree-dump "Replaced .* != 0B. with .1" "forwprop1" { target c++14_down } } } */ |