public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-6086] libstdc++: Fix the test for rvalue stream extraction
@ 2020-12-15 16:05 Ville Voutilainen
  0 siblings, 0 replies; only message in thread
From: Ville Voutilainen @ 2020-12-15 16:05 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:4e096e0ff8c428572353a519cdf8726ef3f70f73

commit r11-6086-g4e096e0ff8c428572353a519cdf8726ef3f70f73
Author: Ville Voutilainen <ville.voutilainen@gmail.com>
Date:   Tue Dec 15 12:05:51 2020 +0200

    libstdc++: Fix the test for rvalue stream extraction
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/27_io/rvalue_streams.cc: Run the extraction to a char*
            for C++17 and lower only.

Diff:
---
 libstdc++-v3/testsuite/27_io/rvalue_streams.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libstdc++-v3/testsuite/27_io/rvalue_streams.cc b/libstdc++-v3/testsuite/27_io/rvalue_streams.cc
index ad4d11c7cf3..487aa4deedd 100644
--- a/libstdc++-v3/testsuite/27_io/rvalue_streams.cc
+++ b/libstdc++-v3/testsuite/27_io/rvalue_streams.cc
@@ -53,7 +53,9 @@ test02()
   VERIFY( x.as_rvalue == true );
 
   char arr[2];
+#if __cplusplus <= 201703L
   std::istringstream("x") >> &arr[0];
+#endif
   std::istringstream("x") >> arr;
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-15 16:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-15 16:05 [gcc r11-6086] libstdc++: Fix the test for rvalue stream extraction Ville Voutilainen

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).