diff options
author | Ville Voutilainen <ville.voutilainen@gmail.com> | 2020-12-15 12:05:51 +0200 |
---|---|---|
committer | Ville Voutilainen <ville.voutilainen@gmail.com> | 2020-12-15 18:03:43 +0200 |
commit | 4e096e0ff8c428572353a519cdf8726ef3f70f73 (patch) | |
tree | 9fa3788774e72b4923e3f7e993363e30f1df1f37 | |
parent | e9ae2d45ea1658dcfc254ec04ed22670f909b78b (diff) | |
download | gcc-4e096e0ff8c428572353a519cdf8726ef3f70f73.zip gcc-4e096e0ff8c428572353a519cdf8726ef3f70f73.tar.gz gcc-4e096e0ff8c428572353a519cdf8726ef3f70f73.tar.bz2 |
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.
-rw-r--r-- | libstdc++-v3/testsuite/27_io/rvalue_streams.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/27_io/rvalue_streams.cc b/libstdc++-v3/testsuite/27_io/rvalue_streams.cc index ad4d11c..487aa4d 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; } |