public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-9901] libstdc++: Fix macro checked by test
@ 2022-04-21 12:32 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2022-04-21 12:32 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:57f658fe8459a285c89b9ea72ff1411a8c733632
commit r11-9901-g57f658fe8459a285c89b9ea72ff1411a8c733632
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Apr 20 13:50:14 2022 +0100
libstdc++: Fix macro checked by test
The macro being tested here is wrong, but just happens to have the same
value as the one supposed to be tested.
libstdc++-v3/ChangeLog:
* testsuite/21_strings/basic_string_view/operations/copy/char/constexpr.cc:
Check correct feature test macro.
(cherry picked from commit 67ded3a1f5b667b4cb5eb2fee8a031e8e4060a7d)
Diff:
---
.../21_strings/basic_string_view/operations/copy/char/constexpr.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/copy/char/constexpr.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/copy/char/constexpr.cc
index f467d114c24..7ae3ccda22f 100644
--- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/copy/char/constexpr.cc
+++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/copy/char/constexpr.cc
@@ -22,7 +22,7 @@
#ifndef __cpp_lib_constexpr_string_view
# error "Feature test macro for constexpr copy is missing in <string_view>"
-#elif __cpp_lib_constexpr_iterator < 201811L
+#elif __cpp_lib_constexpr_string_view < 201811L
# error "Feature test macro for constexpr copy has wrong value in <string_view>"
#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-21 12:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-21 12:32 [gcc r11-9901] libstdc++: Fix macro checked by test Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).