Add -fdelete-null-pointer-checks to more new C++ testcases.

2020-02-13  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/testsuite/
	* g++.dg/cpp0x/constexpr-static13.C:
	Add -fdelete-null-pointer-checks.
	* g++.dg/cpp2a/constexpr-new11.C: Likewise.
	* g++.dg/cpp2a/constexpr-new12.C: Likewise.
This commit is contained in:
Sandra Loosemore 2020-02-13 10:47:55 -08:00
parent 1d69147af2
commit bb97ad35ea
4 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2020-02-13 Sandra Loosemore <sandra@codesourcery.com>
* g++.dg/cpp0x/constexpr-static13.C:
Add -fdelete-null-pointer-checks.
* g++.dg/cpp2a/constexpr-new11.C: Likewise.
* g++.dg/cpp2a/constexpr-new12.C: Likewise.
2020-02-13 H.J. Lu <hongjiu.lu@intel.com>
PR target/93656

View file

@ -1,5 +1,6 @@
// PR c++/92003
// { dg-do compile { target c++11 } }
// { dg-additional-options "-fdelete-null-pointer-checks" }
// { dg-prune-output "narrowing conversion" }
constexpr char const* get_c_str() { return "abc"; }

View file

@ -1,5 +1,6 @@
// PR c++/93633
// { dg-do compile { target c++2a } }
// { dg-additional-options "-fdelete-null-pointer-checks" }
struct A {
constexpr A () : a (0) {}

View file

@ -1,5 +1,6 @@
// PR c++/93633
// { dg-do compile { target c++2a } }
// { dg-additional-options "-fdelete-null-pointer-checks" }
struct A {
constexpr A () : a (0) {}