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.
---
Tested x86_64-linux. Pushed to trunk.
gcc/testsuite/g++.dg/cpp0x/trivial1.C | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/testsuite/g++.dg/cpp0x/trivial1.C
b/gcc/testsuite/g++.dg/cpp0x/trivial1.C
index 3fed57042ed..a887dbba520 100644
--- a/gcc/testsuite/g++.dg/cpp0x/trivial1.C
+++ b/gcc/testsuite/g++.dg/cpp0x/trivial1.C
@@ -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
--
2.47.1