]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix cpp0x/trivial1.C for std::is_trivial deprecation in C++26
authorJonathan Wakely <jwakely@redhat.com>
Tue, 10 Dec 2024 14:58:18 +0000 (14:58 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 10 Dec 2024 15:01:01 +0000 (15:01 +0000)
std::is_trivial is deprecated in C++26, so this test needs to use
-Wno-deprecated now.

gcc/testsuite/ChangeLog:

* g++.dg/cpp0x/trivial1.C: Add -Wno-deprecated for C++26.

gcc/testsuite/g++.dg/cpp0x/trivial1.C

index 3fed57042edbb9811bb567ad15672537ddd1d7ef..a887dbba5200d65dc1e64aa6388b9a8f29fc9acb 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// { dg-additional-options "-Wno-deprecated" { target c++26 } }
 
 // [basic.types]/10:
 // Scalar types, trivial class types (Clause 9), arrays of such types and