pr86397-1.C: Add -fdelete-null-pointer-checks.
authorSandra Loosemore <sandra@codesourcery.com>
Tue, 22 Jan 2019 18:19:06 +0000 (13:19 -0500)
committerSandra Loosemore <sandra@gcc.gnu.org>
Tue, 22 Jan 2019 18:19:06 +0000 (13:19 -0500)
2019-01-22  Sandra Loosemore  <sandra@codesourcery.com>

gcc/testsuite/
* g++.dg/cpp0x/pr86397-1.C: Add -fdelete-null-pointer-checks.
* g++.dg/cpp0x/pr86397-2.C: Likewise.

From-SVN: r268161

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr86397-1.C
gcc/testsuite/g++.dg/cpp0x/pr86397-2.C

index 851e3914ac3815c4900645ded272e73f1f282560..67e970c35dbecb770671f2f1f31be5e6c09be6de 100644 (file)
@@ -1,3 +1,8 @@
+2019-01-22  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * g++.dg/cpp0x/pr86397-1.C: Add -fdelete-null-pointer-checks.
+       * g++.dg/cpp0x/pr86397-2.C: Likewise.
+
 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
 
        PR target/88469
index 4f9f5fa7e4c844848775149de8a64712370b6f71..a0123cba0da7364febddc2b21b52287f14f701c9 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// { dg-options "-fdelete-null-pointer-checks" }
 void e();
 template <bool> void f(int() noexcept(e)) {}
 template void f<false>(int()); // { dg-error "does not match" "" { target c++17 } }
index fb43499526e8bc678230c296ea761a5425d0099f..8e4956bcf6ca443246a4256f845074cfd05235a8 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// { dg-options "-fdelete-null-pointer-checks" }
 void e();
 template <bool> void f(int() noexcept(e)) {}
 template void f<false>(int() noexcept);