From: Sandra Loosemore Date: Thu, 13 Feb 2020 18:47:55 +0000 (-0800) Subject: Add -fdelete-null-pointer-checks to more new C++ testcases. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb97ad35ead015075ee4747136c9fc75faa27411;p=gcc.git Add -fdelete-null-pointer-checks to more new C++ testcases. 2020-02-13 Sandra Loosemore 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. --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c296fc38109..560187c701a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2020-02-13 Sandra Loosemore + + * 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 PR target/93656 diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-static13.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-static13.C index 644f9f7f893..2677a22b628 100644 --- a/gcc/testsuite/g++.dg/cpp0x/constexpr-static13.C +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-static13.C @@ -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"; } diff --git a/gcc/testsuite/g++.dg/cpp2a/constexpr-new11.C b/gcc/testsuite/g++.dg/cpp2a/constexpr-new11.C index 26658d0a477..2bf359a350f 100644 --- a/gcc/testsuite/g++.dg/cpp2a/constexpr-new11.C +++ b/gcc/testsuite/g++.dg/cpp2a/constexpr-new11.C @@ -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) {} diff --git a/gcc/testsuite/g++.dg/cpp2a/constexpr-new12.C b/gcc/testsuite/g++.dg/cpp2a/constexpr-new12.C index 2dedcd22b58..04f75975c97 100644 --- a/gcc/testsuite/g++.dg/cpp2a/constexpr-new12.C +++ b/gcc/testsuite/g++.dg/cpp2a/constexpr-new12.C @@ -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) {}