diff options
Diffstat (limited to 'libcxx/test/input.output/string.streams/istringstream/istringstream.assign/move.pass.cpp')
| -rw-r--r-- | libcxx/test/input.output/string.streams/istringstream/istringstream.assign/move.pass.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/libcxx/test/input.output/string.streams/istringstream/istringstream.assign/move.pass.cpp b/libcxx/test/input.output/string.streams/istringstream/istringstream.assign/move.pass.cpp index a3e869de2d9..e57ad55c907 100644 --- a/libcxx/test/input.output/string.streams/istringstream/istringstream.assign/move.pass.cpp +++ b/libcxx/test/input.output/string.streams/istringstream/istringstream.assign/move.pass.cpp @@ -33,24 +33,24 @@ int main() ss >> i; assert(i == 456); } - { - std::istringstream s1("Aaaaa Bbbbb Cccccccccc Dddddddddddddddddd"); - std::string s; - s1 >> s; + { + std::istringstream s1("Aaaaa Bbbbb Cccccccccc Dddddddddddddddddd"); + std::string s; + s1 >> s; - std::istringstream s2 = std::move(s1); - s2 >> s; - assert(s == "Bbbbb"); + std::istringstream s2 = std::move(s1); + s2 >> s; + assert(s == "Bbbbb"); - std::istringstream s3; - s3 = std::move(s2); - s3 >> s; - assert(s == "Cccccccccc"); + std::istringstream s3; + s3 = std::move(s2); + s3 >> s; + assert(s == "Cccccccccc"); - s1 = std::move(s3); - s1 >> s; - assert(s == "Dddddddddddddddddd"); - } + s1 = std::move(s3); + s1 >> s; + assert(s == "Dddddddddddddddddd"); + } { std::wistringstream ss0(L" 123 456"); std::wistringstream ss; @@ -64,23 +64,23 @@ int main() ss >> i; assert(i == 456); } - { - std::wistringstream s1(L"Aaaaa Bbbbb Cccccccccc Dddddddddddddddddd"); - std::wstring s; - s1 >> s; + { + std::wistringstream s1(L"Aaaaa Bbbbb Cccccccccc Dddddddddddddddddd"); + std::wstring s; + s1 >> s; - std::wistringstream s2 = std::move(s1); - s2 >> s; - assert(s == L"Bbbbb"); + std::wistringstream s2 = std::move(s1); + s2 >> s; + assert(s == L"Bbbbb"); - std::wistringstream s3; - s3 = std::move(s2); - s3 >> s; - assert(s == L"Cccccccccc"); + std::wistringstream s3; + s3 = std::move(s2); + s3 >> s; + assert(s == L"Cccccccccc"); - s1 = std::move(s3); - s1 >> s; - assert(s == L"Dddddddddddddddddd"); - } + s1 = std::move(s3); + s1 >> s; + assert(s == L"Dddddddddddddddddd"); + } #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES } |

