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 851e391..67e970c 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 4f9f5fa..a0123cb 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 fb43499..8e4956b 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);