Commit bb97ad35 by Sandra Loosemore

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.
parent 1d69147a
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
......
// 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"; }
......
// PR c++/93633
// { dg-do compile { target c++2a } }
// { dg-additional-options "-fdelete-null-pointer-checks" }
struct A {
constexpr A () : a (0) {}
......
// PR c++/93633
// { dg-do compile { target c++2a } }
// { dg-additional-options "-fdelete-null-pointer-checks" }
struct A {
constexpr A () : a (0) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment