diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-10-05 09:32:11 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-10-05 09:35:47 +0100 |
commit | 7646847df71e57edca5ec5b8c3c3dc4550dcb49d (patch) | |
tree | de68b06125a874596720c66522746f4916114cb3 | |
parent | 9665c2e76849c8e0066c6660779ae082fce67ea8 (diff) | |
download | gcc-7646847df71e57edca5ec5b8c3c3dc4550dcb49d.zip gcc-7646847df71e57edca5ec5b8c3c3dc4550dcb49d.tar.gz gcc-7646847df71e57edca5ec5b8c3c3dc4550dcb49d.tar.bz2 |
libstdc++: Fix testcase for newly-implemented C++20 semantics [PR102535]
libstdc++-v3/ChangeLog:
PR c++/102535
* testsuite/20_util/is_trivially_constructible/value.cc: Adjust
expected value for C++20.
-rw-r--r-- | libstdc++-v3/testsuite/20_util/is_trivially_constructible/value.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/testsuite/20_util/is_trivially_constructible/value.cc b/libstdc++-v3/testsuite/20_util/is_trivially_constructible/value.cc index 488ea75..fd1fbb0 100644 --- a/libstdc++-v3/testsuite/20_util/is_trivially_constructible/value.cc +++ b/libstdc++-v3/testsuite/20_util/is_trivially_constructible/value.cc @@ -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, |