From: Paolo Carlini Date: Wed, 11 Apr 2018 18:14:07 +0000 (+0000) Subject: Wzero-as-null-pointer-constant-7.C: Move... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26a998b0ca8faf56f368f25797849cbf7ba2bf18;p=gcc.git Wzero-as-null-pointer-constant-7.C: Move... 2018-04-11 Paolo Carlini * g++.dg/warn/Wzero-as-null-pointer-constant-7.C: Move... * g++.dg/cpp0x/Wzero-as-null-pointer-constant-3.C: ... here. From-SVN: r259327 --- diff --git a/gcc/testsuite/g++.dg/cpp0x/Wzero-as-null-pointer-constant-3.C b/gcc/testsuite/g++.dg/cpp0x/Wzero-as-null-pointer-constant-3.C new file mode 100644 index 00000000000..b03ec943b35 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/Wzero-as-null-pointer-constant-3.C @@ -0,0 +1,6 @@ +// PR c++/70808 +// { dg-do compile { target c++11 } } +// { dg-options "-Wzero-as-null-pointer-constant" } + +int* no_warn = {}; +decltype( nullptr ) warn = {}; 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 deleted file mode 100644 index b03ec943b35..00000000000 --- a/gcc/testsuite/g++.dg/warn/Wzero-as-null-pointer-constant-7.C +++ /dev/null @@ -1,6 +0,0 @@ -// PR c++/70808 -// { dg-do compile { target c++11 } } -// { dg-options "-Wzero-as-null-pointer-constant" } - -int* no_warn = {}; -decltype( nullptr ) warn = {};