summaryrefslogtreecommitdiffstats
path: root/libcxx/test/input.output/file.streams/fstreams/fstream.cons
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2014-12-20 01:40:03 +0000
committerEric Fiselier <eric@efcs.ca>2014-12-20 01:40:03 +0000
commit5a83710e371fe68a06e6e3876c6a2c8b820a8976 (patch)
treeafde4c82ad6704681781c5cd49baa3fbd05c85db /libcxx/test/input.output/file.streams/fstreams/fstream.cons
parentf11e8eab527fba316c64112f6e05de1a79693a3e (diff)
downloadbcm5719-llvm-5a83710e371fe68a06e6e3876c6a2c8b820a8976.tar.gz
bcm5719-llvm-5a83710e371fe68a06e6e3876c6a2c8b820a8976.zip
Move test into test/std subdirectory.
llvm-svn: 224658
Diffstat (limited to 'libcxx/test/input.output/file.streams/fstreams/fstream.cons')
-rw-r--r--libcxx/test/input.output/file.streams/fstreams/fstream.cons/default.pass.cpp28
-rw-r--r--libcxx/test/input.output/file.streams/fstreams/fstream.cons/move.pass.cpp48
-rw-r--r--libcxx/test/input.output/file.streams/fstreams/fstream.cons/pointer.pass.cpp44
-rw-r--r--libcxx/test/input.output/file.streams/fstreams/fstream.cons/string.pass.cpp46
4 files changed, 0 insertions, 166 deletions
diff --git a/libcxx/test/input.output/file.streams/fstreams/fstream.cons/default.pass.cpp b/libcxx/test/input.output/file.streams/fstreams/fstream.cons/default.pass.cpp
deleted file mode 100644
index cfd5a031f0f..00000000000
--- a/libcxx/test/input.output/file.streams/fstreams/fstream.cons/default.pass.cpp
+++ /dev/null
@@ -1,28 +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.
-//
-//===----------------------------------------------------------------------===//
-
-// <fstream>
-
-// template <class charT, class traits = char_traits<charT> >
-// class basic_fstream
-
-// basic_fstream();
-
-#include <fstream>
-#include <type_traits>
-
-int main()
-{
- {
- std::fstream fs;
- }
- {
- std::wfstream fs;
- }
-}
diff --git a/libcxx/test/input.output/file.streams/fstreams/fstream.cons/move.pass.cpp b/libcxx/test/input.output/file.streams/fstreams/fstream.cons/move.pass.cpp
deleted file mode 100644
index d2ae3028606..00000000000
--- a/libcxx/test/input.output/file.streams/fstreams/fstream.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.
-//
-//===----------------------------------------------------------------------===//
-
-// <fstream>
-
-// template <class charT, class traits = char_traits<charT> >
-// class basic_fstream
-
-// basic_fstream(basic_fstream&& rhs);
-
-#include <fstream>
-#include <cassert>
-#include "platform_support.h"
-
-int main()
-{
-#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
- std::string temp = get_temp_file_name();
- {
- std::fstream fso(temp, std::ios_base::in | std::ios_base::out
- | std::ios_base::trunc);
- std::fstream fs = move(fso);
- double x = 0;
- fs << 3.25;
- fs.seekg(0);
- fs >> x;
- assert(x == 3.25);
- }
- std::remove(temp.c_str());
- {
- std::wfstream fso(temp, std::ios_base::in | std::ios_base::out
- | std::ios_base::trunc);
- std::wfstream fs = move(fso);
- double x = 0;
- fs << 3.25;
- fs.seekg(0);
- fs >> x;
- assert(x == 3.25);
- }
- std::remove(temp.c_str());
-#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
-}
diff --git a/libcxx/test/input.output/file.streams/fstreams/fstream.cons/pointer.pass.cpp b/libcxx/test/input.output/file.streams/fstreams/fstream.cons/pointer.pass.cpp
deleted file mode 100644
index 06a6b77943a..00000000000
--- a/libcxx/test/input.output/file.streams/fstreams/fstream.cons/pointer.pass.cpp
+++ /dev/null
@@ -1,44 +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.
-//
-//===----------------------------------------------------------------------===//
-
-// <fstream>
-
-// template <class charT, class traits = char_traits<charT> >
-// class basic_fstream
-
-// explicit basic_fstream(const char* s, ios_base::openmode mode = ios_base::in | ios_base::out);
-
-#include <fstream>
-#include <cassert>
-#include "platform_support.h"
-
-int main()
-{
- std::string temp = get_temp_file_name();
- {
- std::fstream fs(temp.c_str(), std::ios_base::in | std::ios_base::out
- | std::ios_base::trunc);
- double x = 0;
- fs << 3.25;
- fs.seekg(0);
- fs >> x;
- assert(x == 3.25);
- }
- std::remove(temp.c_str());
- {
- std::wfstream fs(temp.c_str(), std::ios_base::in | std::ios_base::out
- | std::ios_base::trunc);
- double x = 0;
- fs << 3.25;
- fs.seekg(0);
- fs >> x;
- assert(x == 3.25);
- }
- std::remove(temp.c_str());
-}
diff --git a/libcxx/test/input.output/file.streams/fstreams/fstream.cons/string.pass.cpp b/libcxx/test/input.output/file.streams/fstreams/fstream.cons/string.pass.cpp
deleted file mode 100644
index 4b0819f8af4..00000000000
--- a/libcxx/test/input.output/file.streams/fstreams/fstream.cons/string.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.
-//
-//===----------------------------------------------------------------------===//
-
-// <fstream>
-
-// template <class charT, class traits = char_traits<charT> >
-// class basic_fstream
-
-// explicit basic_fstream(const string& s, ios_base::openmode mode = ios_base::in|ios_base::out);
-
-#include <fstream>
-#include <cassert>
-#include "platform_support.h"
-
-int main()
-{
- std::string temp = get_temp_file_name();
- {
- std::fstream fs(temp,
- std::ios_base::in | std::ios_base::out
- | std::ios_base::trunc);
- double x = 0;
- fs << 3.25;
- fs.seekg(0);
- fs >> x;
- assert(x == 3.25);
- }
- std::remove(temp.c_str());
- {
- std::wfstream fs(temp,
- std::ios_base::in | std::ios_base::out
- | std::ios_base::trunc);
- double x = 0;
- fs << 3.25;
- fs.seekg(0);
- fs >> x;
- assert(x == 3.25);
- }
- std::remove(temp.c_str());
-}
OpenPOWER on IntegriCloud