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-Tag: basepoints/gcc-11~1455 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb97ad35ead015075ee4747136c9fc75faa27411;p=thirdparty%2Fgcc.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 c296fc381094..560187c701a2 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 644f9f7f893c..2677a22b628e 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 26658d0a477a..2bf359a350f5 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 2dedcd22b587..04f75975c972 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) {}