aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2020-06-29 20:41:55 -0400
committerDavid Edelsohn <dje.gcc@gmail.com>2020-06-30 08:58:27 -0400
commit7d503e329911a9c7f6d4db3170f6ed6f5a0424ba (patch)
tree4e3a59d70e83b55fbbea0e498bcd446d1b20c5de
parent5958b926dcc3332aec0a2e34653c4394d2613401 (diff)
downloadgcc-7d503e329911a9c7f6d4db3170f6ed6f5a0424ba.zip
gcc-7d503e329911a9c7f6d4db3170f6ed6f5a0424ba.tar.gz
gcc-7d503e329911a9c7f6d4db3170f6ed6f5a0424ba.tar.bz2
testsuite: fix constexpr-is_literal.C deprecated c++17 and above.
std::is_literal_type is deprecated in C++17 and above. This was introduced in c++11, but the testsuite list of standards now only includes c++98 and c++14. This patch limits the test to c++14_only to prevent deprecation warnings. gcc/testsuite/ChangeLog 2020-06-30 David Edelsohn <dje.gcc@gmail.com> * g++.dg/cpp0x/constexpr-is_literal.C: Limit test to -std=c++14.
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/constexpr-is_literal.C2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-is_literal.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-is_literal.C
index f255b8d..02d2ca3 100644
--- a/gcc/testsuite/g++.dg/cpp0x/constexpr-is_literal.C
+++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-is_literal.C
@@ -1,4 +1,4 @@
-// { dg-do compile { target c++11 } }
+// { dg-do compile { target c++14_only } }
#include <type_traits>