diff --git a/libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/move2.pass.cpp b/libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/move2.pass.cpp --- a/libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/move2.pass.cpp +++ b/libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/move2.pass.cpp @@ -25,17 +25,16 @@ int main(int, char**) { - std::vector vecis; - vecis.push_back(std::istringstream()); - vecis.back().str("hub started at [00 6b 8b 45 69]"); - vecis.push_back(std::istringstream()); - vecis.back().str("hub started at [00 6b 8b 45 69]"); - for (std::size_t n = 0; n < vecis.size(); n++) - { - assert(vecis[n].str().size() == 31); - vecis[n].seekg(0, std::ios_base::beg); - assert(vecis[n].str().size() == 31); - } + std::vector vecss; + vecss.push_back(std::stringstream()); + vecss.back().str("hub started at [00 6b 8b 45 69]"); + vecss.push_back(std::stringstream()); + vecss.back().str("hub started at [00 6b 8b 45 69]"); + for (std::size_t n = 0; n < vecss.size(); n++) { + assert(vecss[n].str().size() == 31); + vecss[n].seekg(0, std::ios_base::beg); + assert(vecss[n].str().size() == 31); + } return 0; }