summaryrefslogtreecommitdiffstats
path: root/libcxx/test/input.output/string.streams/istringstream/istringstream.cons
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/input.output/string.streams/istringstream/istringstream.cons')
-rw-r--r--libcxx/test/input.output/string.streams/istringstream/istringstream.cons/default.pass.cpp46
-rw-r--r--libcxx/test/input.output/string.streams/istringstream/istringstream.cons/move.pass.cpp48
-rw-r--r--libcxx/test/input.output/string.streams/istringstream/istringstream.cons/string.pass.cpp67
3 files changed, 0 insertions, 161 deletions
diff --git a/libcxx/test/input.output/string.streams/istringstream/istringstream.cons/default.pass.cpp b/libcxx/test/input.output/string.streams/istringstream/istringstream.cons/default.pass.cpp
deleted file mode 100644
index 5d44a50a3f6..00000000000
--- a/libcxx/test/input.output/string.streams/istringstream/istringstream.cons/default.pass.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <sstream>
-
-// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
-// class basic_istringstream
-
-// explicit basic_istringstream(ios_base::openmode which = ios_base::in);
-
-#include <sstream>
-#include <cassert>
-
-int main()
-{
- {
- std::istringstream ss;
- assert(ss.rdbuf() != 0);
- assert(ss.good());
- assert(ss.str() == "");
- }
- {
- std::istringstream ss(std::ios_base::in);
- assert(ss.rdbuf() != 0);
- assert(ss.good());
- assert(ss.str() == "");
- }
- {
- std::wistringstream ss;
- assert(ss.rdbuf() != 0);
- assert(ss.good());
- assert(ss.str() == L"");
- }
- {
- std::wistringstream ss(std::ios_base::in);
- assert(ss.rdbuf() != 0);
- assert(ss.good());
- assert(ss.str() == L"");
- }
-}
diff --git a/libcxx/test/input.output/string.streams/istringstream/istringstream.cons/move.pass.cpp b/libcxx/test/input.output/string.streams/istringstream/istringstream.cons/move.pass.cpp
deleted file mode 100644
index adc46ab65f5..00000000000
--- a/libcxx/test/input.output/string.streams/istringstream/istringstream.cons/move.pass.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <sstream>
-
-// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
-// class basic_istringstream
-
-// basic_istringstream(basic_istringstream&& rhs);
-
-#include <sstream>
-#include <cassert>
-
-int main()
-{
-#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
- {
- std::istringstream ss0(" 123 456");
- std::istringstream ss(std::move(ss0));
- assert(ss.rdbuf() != 0);
- assert(ss.good());
- assert(ss.str() == " 123 456");
- int i = 0;
- ss >> i;
- assert(i == 123);
- ss >> i;
- assert(i == 456);
- }
- {
- std::wistringstream ss0(L" 123 456");
- std::wistringstream ss(std::move(ss0));
- assert(ss.rdbuf() != 0);
- assert(ss.good());
- assert(ss.str() == L" 123 456");
- int i = 0;
- ss >> i;
- assert(i == 123);
- ss >> i;
- assert(i == 456);
- }
-#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
-}
diff --git a/libcxx/test/input.output/string.streams/istringstream/istringstream.cons/string.pass.cpp b/libcxx/test/input.output/string.streams/istringstream/istringstream.cons/string.pass.cpp
deleted file mode 100644
index 97792363969..00000000000
--- a/libcxx/test/input.output/string.streams/istringstream/istringstream.cons/string.pass.cpp
+++ /dev/null
@@ -1,67 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <sstream>
-
-// template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
-// class basic_istringstream
-
-// explicit basic_istringstream(const basic_string<charT,traits,allocator>& str,
-// ios_base::openmode which = ios_base::in);
-
-#include <sstream>
-#include <cassert>
-
-int main()
-{
- {
- std::istringstream ss(" 123 456");
- assert(ss.rdbuf() != 0);
- assert(ss.good());
- assert(ss.str() == " 123 456");
- int i = 0;
- ss >> i;
- assert(i == 123);
- ss >> i;
- assert(i == 456);
- }
- {
- std::istringstream ss(" 123 456", std::ios_base::out);
- assert(ss.rdbuf() != 0);
- assert(ss.good());
- assert(ss.str() == " 123 456");
- int i = 0;
- ss >> i;
- assert(i == 123);
- ss >> i;
- assert(i == 456);
- }
- {
- std::wistringstream ss(L" 123 456");
- assert(ss.rdbuf() != 0);
- assert(ss.good());
- assert(ss.str() == L" 123 456");
- int i = 0;
- ss >> i;
- assert(i == 123);
- ss >> i;
- assert(i == 456);
- }
- {
- std::wistringstream ss(L" 123 456", std::ios_base::out);
- assert(ss.rdbuf() != 0);
- assert(ss.good());
- assert(ss.str() == L" 123 456");
- int i = 0;
- ss >> i;
- assert(i == 123);
- ss >> i;
- assert(i == 456);
- }
-}
OpenPOWER on IntegriCloud