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:
parent
5958b926dc
commit
7d503e3299
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
// { dg-do compile { target c++11 } }
|
||||
// { dg-do compile { target c++14_only } }
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue