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 c296fc3..560187c 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 644f9f7..2677a22 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 26658d0..2bf359a 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 2dedcd2..04f7597 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) {}