From 79894a61de68116613e33cbdebb76981b2949970 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 11 Apr 2018 17:55:15 +0200 Subject: [PATCH] re PR c++/70808 (Spurious -Wzero-as-null-pointer-constant for nullptr_t) PR c++/70808 * g++.dg/warn/Wzero-as-null-pointer-constant-7.C: Require c++11 effective target. From-SVN: r259325 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/g++.dg/warn/Wzero-as-null-pointer-constant-7.C | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a1360c9..b726a4b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2018-04-11 Jakub Jelinek + + PR c++/70808 + * g++.dg/warn/Wzero-as-null-pointer-constant-7.C: Require c++11 + effective target. + 2018-04-11 Alexander Monakov PR target/84301 diff --git a/gcc/testsuite/g++.dg/warn/Wzero-as-null-pointer-constant-7.C b/gcc/testsuite/g++.dg/warn/Wzero-as-null-pointer-constant-7.C index 808b85b..b03ec94 100644 --- a/gcc/testsuite/g++.dg/warn/Wzero-as-null-pointer-constant-7.C +++ b/gcc/testsuite/g++.dg/warn/Wzero-as-null-pointer-constant-7.C @@ -1,4 +1,5 @@ // PR c++/70808 +// { dg-do compile { target c++11 } } // { dg-options "-Wzero-as-null-pointer-constant" } int* no_warn = {}; -- 2.7.4