diff --git a/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.cons/string.move.mode.pass.cpp b/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.cons/string.move.mode.pass.cpp --- a/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.cons/string.move.mode.pass.cpp +++ b/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.cons/string.move.mode.pass.cpp @@ -29,13 +29,23 @@ static void test() { { std::basic_string s(STR("testing")); - const std::basic_stringbuf, test_allocator> buf(std::move(s)); + const std::basic_stringbuf buf(std::move(s)); assert(buf.view() == SV("testing")); } { std::basic_string s(STR("testing")); + const std::basic_stringbuf buf(std::move(s), std::ios_base::out); + assert(buf.view() == SV("testing")); + } + { + std::basic_string, test_allocator> s(STR("testing")); + const std::basic_stringbuf, test_allocator> buf(std::move(s)); + assert(buf.view() == SV("testing")); + } + { + std::basic_string, test_allocator> s(STR("testing")); const std::basic_stringbuf, test_allocator> buf( - std::move(s), std::ios_base::out); + std::move(s), std::ios_base::in); assert(buf.view() == SV("testing")); } }