]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix testcase for newly-implemented C++20 semantics [PR102535]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 5 Oct 2021 08:32:11 +0000 (09:32 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 12 Oct 2021 10:45:46 +0000 (11:45 +0100)
libstdc++-v3/ChangeLog:

PR c++/102535
* testsuite/20_util/is_trivially_constructible/value.cc: Adjust
expected value for C++20.

(cherry picked from commit 7646847df71e57edca5ec5b8c3c3dc4550dcb49d)

libstdc++-v3/testsuite/20_util/is_trivially_constructible/value.cc

index 488ea7585ff634f2fe51ad25ea0ddbc4bd971b15..fd1fbb07ecb8c58a20f9abf6222af620e04b220f 100644 (file)
@@ -105,7 +105,7 @@ void test01()
   static_assert(test_property<is_trivially_constructible,
                PODType, const PODType&>(true), "");
   static_assert(test_property<is_trivially_constructible,
-               PODType, int, int>(false), "");
+               PODType, int, int>(__cplusplus >= 202002L), "");
   static_assert(test_property<is_trivially_constructible,
                NType>(false), "");
   static_assert(test_property<is_trivially_constructible,