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.
This commit is contained in:
David Edelsohn 2020-06-29 20:41:55 -04:00
parent 5958b926dc
commit 7d503e3299

View file

@ -1,4 +1,4 @@
// { dg-do compile { target c++11 } }
// { dg-do compile { target c++14_only } }
#include <type_traits>