Message ID | CAFk2RUbzxcdNhBwqkvWFPcByor6kY2F5smoqxTu0Xb=gxG3kKA@mail.gmail.com |
---|---|
State | New |
Headers | show |
Series | libstdc++: Fix the test for rvalue stream extraction | expand |
On 15/12/20 12:13 +0200, Ville Voutilainen via Libstdc++ wrote: > libstdc++-v3/ChangeLog: > > * testsuite/27_io/rvalue_streams.cc: Run the extraction to a char* > for C++17 and lower only. OK, thanks. >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; > } >
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; }