From eb6fa6af2b52abba5c898e9323fbd4ee73136a01 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Mon, 17 May 2010 20:38:02 +0000 Subject: Got rid of more :: path names llvm-svn: 103970 --- .../ios.types/ios::Init/tested_elsewhere.pass.cpp | 12 ---- .../ctor_char_pointer_error_code.pass.cpp | 39 ----------- .../ios::failure/ctor_string_error_code.pass.cpp | 39 ----------- .../ios.types/ios::fmtflags/fmtflags.pass.cpp | 81 ---------------------- .../ios.types/ios::iostate/iostate.pass.cpp | 36 ---------- .../ios.types/ios::openmode/openmode.pass.cpp | 42 ----------- .../ios.types/ios::seekdir/seekdir.pass.cpp | 26 ------- .../ios.types/ios_Init/tested_elsewhere.pass.cpp | 12 ++++ .../ctor_char_pointer_error_code.pass.cpp | 39 +++++++++++ .../ios_failure/ctor_string_error_code.pass.cpp | 39 +++++++++++ .../ios.types/ios_fmtflags/fmtflags.pass.cpp | 81 ++++++++++++++++++++++ .../ios.types/ios_iostate/iostate.pass.cpp | 36 ++++++++++ .../ios.types/ios_openmode/openmode.pass.cpp | 42 +++++++++++ .../ios.types/ios_seekdir/seekdir.pass.cpp | 26 +++++++ 14 files changed, 275 insertions(+), 275 deletions(-) delete mode 100644 libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::Init/tested_elsewhere.pass.cpp delete mode 100644 libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::failure/ctor_char_pointer_error_code.pass.cpp delete mode 100644 libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::failure/ctor_string_error_code.pass.cpp delete mode 100644 libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::fmtflags/fmtflags.pass.cpp delete mode 100644 libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::iostate/iostate.pass.cpp delete mode 100644 libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::openmode/openmode.pass.cpp delete mode 100644 libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::seekdir/seekdir.pass.cpp create mode 100644 libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_Init/tested_elsewhere.pass.cpp create mode 100644 libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_failure/ctor_char_pointer_error_code.pass.cpp create mode 100644 libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_failure/ctor_string_error_code.pass.cpp create mode 100644 libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_fmtflags/fmtflags.pass.cpp create mode 100644 libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_iostate/iostate.pass.cpp create mode 100644 libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_openmode/openmode.pass.cpp create mode 100644 libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_seekdir/seekdir.pass.cpp (limited to 'libcxx/test') diff --git a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::Init/tested_elsewhere.pass.cpp b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::Init/tested_elsewhere.pass.cpp deleted file mode 100644 index b89f168e9c4..00000000000 --- a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::Init/tested_elsewhere.pass.cpp +++ /dev/null @@ -1,12 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -int main() -{ -} diff --git a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::failure/ctor_char_pointer_error_code.pass.cpp b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::failure/ctor_char_pointer_error_code.pass.cpp deleted file mode 100644 index fff59b0f134..00000000000 --- a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::failure/ctor_char_pointer_error_code.pass.cpp +++ /dev/null @@ -1,39 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// - -// class ios_base::failure - -// explicit failure(const char* msg, const error_code& ec = io_errc::stream); - -#include -#include -#include - -int main() -{ - { - std::string what_arg("io test message"); - std::ios_base::failure se(what_arg.c_str(), make_error_code(std::errc::is_a_directory)); - assert(se.code() == std::make_error_code(std::errc::is_a_directory)); - std::string what_message(se.what()); - assert(what_message.find(what_arg) != std::string::npos); - assert(what_message.find("Is a directory") != std::string::npos); - } - { - std::string what_arg("io test message"); - std::ios_base::failure se(what_arg.c_str()); - assert(se.code() == std::make_error_code(std::io_errc::stream)); - std::string what_message(se.what()); - assert(what_message.find(what_arg) != std::string::npos); - assert(what_message.find(std::iostream_category().message(static_cast - (std::io_errc::stream))) != std::string::npos); - } -} diff --git a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::failure/ctor_string_error_code.pass.cpp b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::failure/ctor_string_error_code.pass.cpp deleted file mode 100644 index 752765cedf7..00000000000 --- a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::failure/ctor_string_error_code.pass.cpp +++ /dev/null @@ -1,39 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// - -// class ios_base::failure - -// explicit failure(const string& msg, const error_code& ec = io_errc::stream); - -#include -#include -#include - -int main() -{ - { - std::string what_arg("io test message"); - std::ios_base::failure se(what_arg, make_error_code(std::errc::is_a_directory)); - assert(se.code() == std::make_error_code(std::errc::is_a_directory)); - std::string what_message(se.what()); - assert(what_message.find(what_arg) != std::string::npos); - assert(what_message.find("Is a directory") != std::string::npos); - } - { - std::string what_arg("io test message"); - std::ios_base::failure se(what_arg); - assert(se.code() == std::make_error_code(std::io_errc::stream)); - std::string what_message(se.what()); - assert(what_message.find(what_arg) != std::string::npos); - assert(what_message.find(std::iostream_category().message(static_cast - (std::io_errc::stream))) != std::string::npos); - } -} diff --git a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::fmtflags/fmtflags.pass.cpp b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::fmtflags/fmtflags.pass.cpp deleted file mode 100644 index c6cb8c86bd0..00000000000 --- a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::fmtflags/fmtflags.pass.cpp +++ /dev/null @@ -1,81 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// - -// class ios_base - -// static const fmtflags boolalpha; -// static const fmtflags dec; -// static const fmtflags fixed; -// static const fmtflags hex; -// static const fmtflags internal; -// static const fmtflags left; -// static const fmtflags oct; -// static const fmtflags right; -// static const fmtflags scientific; -// static const fmtflags showbase; -// static const fmtflags showpoint; -// static const fmtflags showpos; -// static const fmtflags skipws; -// static const fmtflags unitbuf; -// static const fmtflags uppercase; -// static const fmtflags adjustfield = left | right | internal; -// static const fmtflags basefield = dec | oct | hex; -// static const fmtflags floatfield = scientific | fixed; - -#include -#include - -int main() -{ - assert(std::ios_base::boolalpha); - assert(std::ios_base::dec); - assert(std::ios_base::fixed); - assert(std::ios_base::hex); - assert(std::ios_base::internal); - assert(std::ios_base::left); - assert(std::ios_base::oct); - assert(std::ios_base::right); - assert(std::ios_base::scientific); - assert(std::ios_base::showbase); - assert(std::ios_base::showpoint); - assert(std::ios_base::showpos); - assert(std::ios_base::skipws); - assert(std::ios_base::unitbuf); - assert(std::ios_base::uppercase); - - assert - ( - ( std::ios_base::boolalpha - & std::ios_base::dec - & std::ios_base::fixed - & std::ios_base::hex - & std::ios_base::internal - & std::ios_base::left - & std::ios_base::oct - & std::ios_base::right - & std::ios_base::scientific - & std::ios_base::showbase - & std::ios_base::showpoint - & std::ios_base::showpos - & std::ios_base::skipws - & std::ios_base::unitbuf - & std::ios_base::uppercase) == 0 - ); - - assert(std::ios_base::adjustfield == (std::ios_base::left - | std::ios_base::right - | std::ios_base::internal)); - assert(std::ios_base::basefield == (std::ios_base::dec - | std::ios_base::oct - | std::ios_base::hex)); - assert(std::ios_base::floatfield == (std::ios_base::scientific - | std::ios_base::fixed)); -} diff --git a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::iostate/iostate.pass.cpp b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::iostate/iostate.pass.cpp deleted file mode 100644 index be93743616a..00000000000 --- a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::iostate/iostate.pass.cpp +++ /dev/null @@ -1,36 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// - -// class ios_base - -// static const iostate badbit; -// static const iostate eofbit; -// static const iostate failbit; -// static const iostate goodbit = 0; - -#include -#include - -int main() -{ - assert(std::ios_base::badbit); - assert(std::ios_base::eofbit); - assert(std::ios_base::failbit); - - assert - ( - ( std::ios_base::badbit - & std::ios_base::eofbit - & std::ios_base::failbit) == 0 - ); - - assert(std::ios_base::goodbit == 0); -} diff --git a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::openmode/openmode.pass.cpp b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::openmode/openmode.pass.cpp deleted file mode 100644 index f80c3007707..00000000000 --- a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::openmode/openmode.pass.cpp +++ /dev/null @@ -1,42 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// - -// class ios_base - -// static const openmode app; -// static const openmode ate; -// static const openmode binary; -// static const openmode in; -// static const openmode out; -// static const openmode trunc; - -#include -#include - -int main() -{ - assert(std::ios_base::app); - assert(std::ios_base::ate); - assert(std::ios_base::binary); - assert(std::ios_base::in); - assert(std::ios_base::out); - assert(std::ios_base::trunc); - - assert - ( - ( std::ios_base::app - & std::ios_base::ate - & std::ios_base::binary - & std::ios_base::in - & std::ios_base::out - & std::ios_base::trunc) == 0 - ); -} diff --git a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::seekdir/seekdir.pass.cpp b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::seekdir/seekdir.pass.cpp deleted file mode 100644 index 150cbba31c0..00000000000 --- a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios::seekdir/seekdir.pass.cpp +++ /dev/null @@ -1,26 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// - -// class ios_base - -// static const seekdir beg; -// static const seekdir cur; -// static const seekdir end; - -#include -#include - -int main() -{ - assert(std::ios_base::beg != std::ios_base::cur); - assert(std::ios_base::beg != std::ios_base::end); - assert(std::ios_base::cur != std::ios_base::end); -} diff --git a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_Init/tested_elsewhere.pass.cpp b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_Init/tested_elsewhere.pass.cpp new file mode 100644 index 00000000000..b89f168e9c4 --- /dev/null +++ b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_Init/tested_elsewhere.pass.cpp @@ -0,0 +1,12 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +int main() +{ +} diff --git a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_failure/ctor_char_pointer_error_code.pass.cpp b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_failure/ctor_char_pointer_error_code.pass.cpp new file mode 100644 index 00000000000..fff59b0f134 --- /dev/null +++ b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_failure/ctor_char_pointer_error_code.pass.cpp @@ -0,0 +1,39 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// class ios_base::failure + +// explicit failure(const char* msg, const error_code& ec = io_errc::stream); + +#include +#include +#include + +int main() +{ + { + std::string what_arg("io test message"); + std::ios_base::failure se(what_arg.c_str(), make_error_code(std::errc::is_a_directory)); + assert(se.code() == std::make_error_code(std::errc::is_a_directory)); + std::string what_message(se.what()); + assert(what_message.find(what_arg) != std::string::npos); + assert(what_message.find("Is a directory") != std::string::npos); + } + { + std::string what_arg("io test message"); + std::ios_base::failure se(what_arg.c_str()); + assert(se.code() == std::make_error_code(std::io_errc::stream)); + std::string what_message(se.what()); + assert(what_message.find(what_arg) != std::string::npos); + assert(what_message.find(std::iostream_category().message(static_cast + (std::io_errc::stream))) != std::string::npos); + } +} diff --git a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_failure/ctor_string_error_code.pass.cpp b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_failure/ctor_string_error_code.pass.cpp new file mode 100644 index 00000000000..752765cedf7 --- /dev/null +++ b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_failure/ctor_string_error_code.pass.cpp @@ -0,0 +1,39 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// class ios_base::failure + +// explicit failure(const string& msg, const error_code& ec = io_errc::stream); + +#include +#include +#include + +int main() +{ + { + std::string what_arg("io test message"); + std::ios_base::failure se(what_arg, make_error_code(std::errc::is_a_directory)); + assert(se.code() == std::make_error_code(std::errc::is_a_directory)); + std::string what_message(se.what()); + assert(what_message.find(what_arg) != std::string::npos); + assert(what_message.find("Is a directory") != std::string::npos); + } + { + std::string what_arg("io test message"); + std::ios_base::failure se(what_arg); + assert(se.code() == std::make_error_code(std::io_errc::stream)); + std::string what_message(se.what()); + assert(what_message.find(what_arg) != std::string::npos); + assert(what_message.find(std::iostream_category().message(static_cast + (std::io_errc::stream))) != std::string::npos); + } +} diff --git a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_fmtflags/fmtflags.pass.cpp b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_fmtflags/fmtflags.pass.cpp new file mode 100644 index 00000000000..c6cb8c86bd0 --- /dev/null +++ b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_fmtflags/fmtflags.pass.cpp @@ -0,0 +1,81 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// class ios_base + +// static const fmtflags boolalpha; +// static const fmtflags dec; +// static const fmtflags fixed; +// static const fmtflags hex; +// static const fmtflags internal; +// static const fmtflags left; +// static const fmtflags oct; +// static const fmtflags right; +// static const fmtflags scientific; +// static const fmtflags showbase; +// static const fmtflags showpoint; +// static const fmtflags showpos; +// static const fmtflags skipws; +// static const fmtflags unitbuf; +// static const fmtflags uppercase; +// static const fmtflags adjustfield = left | right | internal; +// static const fmtflags basefield = dec | oct | hex; +// static const fmtflags floatfield = scientific | fixed; + +#include +#include + +int main() +{ + assert(std::ios_base::boolalpha); + assert(std::ios_base::dec); + assert(std::ios_base::fixed); + assert(std::ios_base::hex); + assert(std::ios_base::internal); + assert(std::ios_base::left); + assert(std::ios_base::oct); + assert(std::ios_base::right); + assert(std::ios_base::scientific); + assert(std::ios_base::showbase); + assert(std::ios_base::showpoint); + assert(std::ios_base::showpos); + assert(std::ios_base::skipws); + assert(std::ios_base::unitbuf); + assert(std::ios_base::uppercase); + + assert + ( + ( std::ios_base::boolalpha + & std::ios_base::dec + & std::ios_base::fixed + & std::ios_base::hex + & std::ios_base::internal + & std::ios_base::left + & std::ios_base::oct + & std::ios_base::right + & std::ios_base::scientific + & std::ios_base::showbase + & std::ios_base::showpoint + & std::ios_base::showpos + & std::ios_base::skipws + & std::ios_base::unitbuf + & std::ios_base::uppercase) == 0 + ); + + assert(std::ios_base::adjustfield == (std::ios_base::left + | std::ios_base::right + | std::ios_base::internal)); + assert(std::ios_base::basefield == (std::ios_base::dec + | std::ios_base::oct + | std::ios_base::hex)); + assert(std::ios_base::floatfield == (std::ios_base::scientific + | std::ios_base::fixed)); +} diff --git a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_iostate/iostate.pass.cpp b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_iostate/iostate.pass.cpp new file mode 100644 index 00000000000..be93743616a --- /dev/null +++ b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_iostate/iostate.pass.cpp @@ -0,0 +1,36 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// class ios_base + +// static const iostate badbit; +// static const iostate eofbit; +// static const iostate failbit; +// static const iostate goodbit = 0; + +#include +#include + +int main() +{ + assert(std::ios_base::badbit); + assert(std::ios_base::eofbit); + assert(std::ios_base::failbit); + + assert + ( + ( std::ios_base::badbit + & std::ios_base::eofbit + & std::ios_base::failbit) == 0 + ); + + assert(std::ios_base::goodbit == 0); +} diff --git a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_openmode/openmode.pass.cpp b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_openmode/openmode.pass.cpp new file mode 100644 index 00000000000..f80c3007707 --- /dev/null +++ b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_openmode/openmode.pass.cpp @@ -0,0 +1,42 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// class ios_base + +// static const openmode app; +// static const openmode ate; +// static const openmode binary; +// static const openmode in; +// static const openmode out; +// static const openmode trunc; + +#include +#include + +int main() +{ + assert(std::ios_base::app); + assert(std::ios_base::ate); + assert(std::ios_base::binary); + assert(std::ios_base::in); + assert(std::ios_base::out); + assert(std::ios_base::trunc); + + assert + ( + ( std::ios_base::app + & std::ios_base::ate + & std::ios_base::binary + & std::ios_base::in + & std::ios_base::out + & std::ios_base::trunc) == 0 + ); +} diff --git a/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_seekdir/seekdir.pass.cpp b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_seekdir/seekdir.pass.cpp new file mode 100644 index 00000000000..150cbba31c0 --- /dev/null +++ b/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_seekdir/seekdir.pass.cpp @@ -0,0 +1,26 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// class ios_base + +// static const seekdir beg; +// static const seekdir cur; +// static const seekdir end; + +#include +#include + +int main() +{ + assert(std::ios_base::beg != std::ios_base::cur); + assert(std::ios_base::beg != std::ios_base::end); + assert(std::ios_base::cur != std::ios_base::end); +} -- cgit v1.2.3