From: Jonathan Wakely Date: Tue, 10 Dec 2024 14:58:18 +0000 (+0000) Subject: testsuite: Fix cpp0x/trivial1.C for std::is_trivial deprecation in C++26 X-Git-Tag: basepoints/gcc-16~3473 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7aab1271b4afb6f3e9e8a01825fcb14750b29312;p=thirdparty%2Fgcc.git testsuite: Fix cpp0x/trivial1.C for std::is_trivial deprecation in C++26 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. --- diff --git a/gcc/testsuite/g++.dg/cpp0x/trivial1.C b/gcc/testsuite/g++.dg/cpp0x/trivial1.C index 3fed57042edb..a887dbba5200 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