From 7c426d1f9c35924999dc6d7f4be384b417af8c2b Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Tue, 22 Jan 2019 13:19:06 -0500 Subject: [PATCH] pr86397-1.C: Add -fdelete-null-pointer-checks. 2019-01-22 Sandra Loosemore 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 | 5 +++++ gcc/testsuite/g++.dg/cpp0x/pr86397-1.C | 1 + gcc/testsuite/g++.dg/cpp0x/pr86397-2.C | 1 + 3 files changed, 7 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 851e3914ac3..67e970c35db 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-01-22 Sandra Loosemore + + * g++.dg/cpp0x/pr86397-1.C: Add -fdelete-null-pointer-checks. + * g++.dg/cpp0x/pr86397-2.C: Likewise. + 2019-01-22 Richard Earnshaw PR target/88469 diff --git a/gcc/testsuite/g++.dg/cpp0x/pr86397-1.C b/gcc/testsuite/g++.dg/cpp0x/pr86397-1.C index 4f9f5fa7e4c..a0123cba0da 100644 --- a/gcc/testsuite/g++.dg/cpp0x/pr86397-1.C +++ b/gcc/testsuite/g++.dg/cpp0x/pr86397-1.C @@ -1,4 +1,5 @@ // { dg-do compile { target c++11 } } +// { dg-options "-fdelete-null-pointer-checks" } void e(); template void f(int() noexcept(e)) {} template void f(int()); // { dg-error "does not match" "" { target c++17 } } diff --git a/gcc/testsuite/g++.dg/cpp0x/pr86397-2.C b/gcc/testsuite/g++.dg/cpp0x/pr86397-2.C index fb43499526e..8e4956bcf6c 100644 --- a/gcc/testsuite/g++.dg/cpp0x/pr86397-2.C +++ b/gcc/testsuite/g++.dg/cpp0x/pr86397-2.C @@ -1,4 +1,5 @@ // { dg-do compile { target c++11 } } +// { dg-options "-fdelete-null-pointer-checks" } void e(); template void f(int() noexcept(e)) {} template void f(int() noexcept); -- 2.30.2