summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-08-04 10:18:23 +0100
committerJonathan Wakely <jwakely@redhat.com>2022-08-04 13:10:24 +0100
commit3e9bd6b2b1782891639fa5d49b7d2a933b8e85cd (patch)
tree07633a0636750b9375ac266ec0c12481ba4d5089 /libstdc++-v3/testsuite
parentaf98cb88eb4be6a1668ddf966e975149bf8610b1 (diff)
libstdc++: Update value of __cpp_lib_ios_noreplace macro
My P2467R1 proposal was accepted for C++23 so there's an official value for this macro now. libstdc++-v3/ChangeLog: * include/bits/ios_base.h (__cpp_lib_ios_noreplace): Update value to 202207L. * include/std/version (__cpp_lib_ios_noreplace): Likewise. * testsuite/27_io/basic_ofstream/open/char/noreplace.cc: Check for new value. * testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc: Likewise.
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/noreplace.cc4
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/noreplace.cc b/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/noreplace.cc
index e39f5928a1f..56ff2d7cead 100644
--- a/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/noreplace.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/noreplace.cc
@@ -2,10 +2,10 @@
#include <ios>
-#if __cplusplus >= 202200L
+#if __cplusplus >= 202207L
#ifndef __cpp_lib_ios_noreplace
# error "Feature-test macro for ios::noreplace missing in <ios>"
-#elif __cpp_lib_ios_noreplace < 202200L
+#elif __cpp_lib_ios_noreplace < 202207L
# error "Feature-test macro for ios::noreplace has wrong value in <ios>"
#endif
#endif
diff --git a/libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc b/libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc
index 77f11865ac4..f0425cdab3d 100644
--- a/libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_ofstream/open/wchar_t/noreplace.cc
@@ -2,10 +2,10 @@
#include <version>
-#if __cplusplus >= 202200L
+#if __cplusplus >= 202207L
#ifndef __cpp_lib_ios_noreplace
# error "Feature-test macro for ios::noreplace missing in <version>"
-#elif __cpp_lib_ios_noreplace < 202200L
+#elif __cpp_lib_ios_noreplace < 202207L
# error "Feature-test macro for ios::noreplace has wrong value in <version>"
#endif
#endif