]> gcc.gnu.org Git - gcc.git/commitdiff
libstdc++: Fix macro checked by test
authorJonathan Wakely <jwakely@redhat.com>
Wed, 20 Apr 2022 12:50:14 +0000 (13:50 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 21 Apr 2022 11:13:06 +0000 (12:13 +0100)
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)

libstdc++-v3/testsuite/21_strings/basic_string_view/operations/copy/char/constexpr.cc

index f467d114c2408c3ad98f696aad06950da278ad0f..7ae3ccda22f9343bbbb5fd7d2ade7b71f3eaab6f 100644 (file)
@@ -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
 
This page took 0.064906 seconds and 5 git commands to generate.