re PR c++/70808 (Spurious -Wzero-as-null-pointer-constant for nullptr_t)
authorJakub Jelinek <jakub@redhat.com>
Wed, 11 Apr 2018 15:55:15 +0000 (17:55 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 11 Apr 2018 15:55:15 +0000 (17:55 +0200)
PR c++/70808
* g++.dg/warn/Wzero-as-null-pointer-constant-7.C: Require c++11
effective target.

From-SVN: r259325

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wzero-as-null-pointer-constant-7.C

index a1360c9..b726a4b 100644 (file)
@@ -1,3 +1,9 @@
+2018-04-11  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/70808
+       * g++.dg/warn/Wzero-as-null-pointer-constant-7.C: Require c++11
+       effective target.
+
 2018-04-11  Alexander Monakov  <amonakov@ispras.ru>
 
        PR target/84301
index 808b85b..b03ec94 100644 (file)
@@ -1,4 +1,5 @@
 // PR c++/70808
+// { dg-do compile { target c++11 } }
 // { dg-options "-Wzero-as-null-pointer-constant" }
 
 int* no_warn = {};