Add -fdelete-null-pointer-checks to more new C++ testcases.
authorSandra Loosemore <sandra@codesourcery.com>
Thu, 13 Feb 2020 18:47:55 +0000 (10:47 -0800)
committerSandra Loosemore <sandra@codesourcery.com>
Thu, 13 Feb 2020 18:47:55 +0000 (10:47 -0800)
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.

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-static13.C
gcc/testsuite/g++.dg/cpp2a/constexpr-new11.C
gcc/testsuite/g++.dg/cpp2a/constexpr-new12.C

index c296fc3810947bbedfadf18851addea9edc7da97..560187c701a2b48c0bdc77a50e639b3d39b93609 100644 (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
index 644f9f7f893c210753cca75f3fcd121fb813c589..2677a22b628e8cfbf6258fc446487048ae234d0a 100644 (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"; }
index 26658d0a477a474245bc0e8bf40436b829729774..2bf359a350f56628ac2c72f1c466ae95f32a1e14 100644 (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) {}
index 2dedcd22b587ea475daffaaa9294edf9de22838d..04f75975c972c75f8c236651f6b8f63b2b68ee81 100644 (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) {}