diff options
Diffstat (limited to 'libcxx/test/input.output/file.streams/fstreams/ifstream.cons')
5 files changed, 0 insertions, 159 deletions
diff --git a/libcxx/test/input.output/file.streams/fstreams/ifstream.cons/default.pass.cpp b/libcxx/test/input.output/file.streams/fstreams/ifstream.cons/default.pass.cpp deleted file mode 100644 index 41e6780e807..00000000000 --- a/libcxx/test/input.output/file.streams/fstreams/ifstream.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_ifstream - -// basic_ifstream(); - -#include <fstream> -#include <type_traits> - -int main() -{ - { - std::ifstream fs; - } - { - std::wifstream fs; - } -} diff --git a/libcxx/test/input.output/file.streams/fstreams/ifstream.cons/move.pass.cpp b/libcxx/test/input.output/file.streams/fstreams/ifstream.cons/move.pass.cpp deleted file mode 100644 index aaac1212262..00000000000 --- a/libcxx/test/input.output/file.streams/fstreams/ifstream.cons/move.pass.cpp +++ /dev/null @@ -1,38 +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_ifstream - -// basic_ifstream(basic_ifstream&& rhs); - -#include <fstream> -#include <cassert> - -int main() -{ -#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES - { - std::ifstream fso("test.dat"); - std::ifstream fs = move(fso); - double x = 0; - fs >> x; - assert(x == 3.25); - } - { - std::wifstream fso("test.dat"); - std::wifstream fs = move(fso); - double x = 0; - fs >> x; - assert(x == 3.25); - } -#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES -} diff --git a/libcxx/test/input.output/file.streams/fstreams/ifstream.cons/pointer.pass.cpp b/libcxx/test/input.output/file.streams/fstreams/ifstream.cons/pointer.pass.cpp deleted file mode 100644 index f43df3c9f84..00000000000 --- a/libcxx/test/input.output/file.streams/fstreams/ifstream.cons/pointer.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_ifstream - -// explicit basic_ifstream(const char* s, ios_base::openmode mode = ios_base::in); - -#include <fstream> -#include <cassert> - -int main() -{ - { - std::ifstream fs("test.dat"); - double x = 0; - fs >> x; - assert(x == 3.25); - } - { - std::ifstream fs("test.dat", std::ios_base::out); - double x = 0; - fs >> x; - assert(x == 3.25); - } - { - std::wifstream fs("test.dat"); - double x = 0; - fs >> x; - assert(x == 3.25); - } - { - std::wifstream fs("test.dat", std::ios_base::out); - double x = 0; - fs >> x; - assert(x == 3.25); - } -} diff --git a/libcxx/test/input.output/file.streams/fstreams/ifstream.cons/string.pass.cpp b/libcxx/test/input.output/file.streams/fstreams/ifstream.cons/string.pass.cpp deleted file mode 100644 index ad5fe5149df..00000000000 --- a/libcxx/test/input.output/file.streams/fstreams/ifstream.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_ifstream - -// explicit basic_ifstream(const string& s, ios_base::openmode mode = ios_base::in); - -#include <fstream> -#include <cassert> - -int main() -{ - { - std::ifstream fs(std::string("test.dat")); - double x = 0; - fs >> x; - assert(x == 3.25); - } - { - std::ifstream fs(std::string("test.dat"), std::ios_base::out); - double x = 0; - fs >> x; - assert(x == 3.25); - } - { - std::wifstream fs(std::string("test.dat")); - double x = 0; - fs >> x; - assert(x == 3.25); - } - { - std::wifstream fs(std::string("test.dat"), std::ios_base::out); - double x = 0; - fs >> x; - assert(x == 3.25); - } -} diff --git a/libcxx/test/input.output/file.streams/fstreams/ifstream.cons/test.dat b/libcxx/test/input.output/file.streams/fstreams/ifstream.cons/test.dat deleted file mode 100644 index 64064d34a8e..00000000000 --- a/libcxx/test/input.output/file.streams/fstreams/ifstream.cons/test.dat +++ /dev/null @@ -1 +0,0 @@ -3.25
\ No newline at end of file |