diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2015-10-29 05:43:30 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2015-10-29 05:43:30 +0000 |
| commit | 131733bcf0ca8aabab5cb39f2613cec891afc0bd (patch) | |
| tree | 46dd97c127dbde566a15d3366c68f44fd3ed759e /libcxx/test/std/depr | |
| parent | 45bd8ce64c53f86711f5a5ce61db751a3640d0d1 (diff) | |
| download | bcm5719-llvm-131733bcf0ca8aabab5cb39f2613cec891afc0bd.tar.gz bcm5719-llvm-131733bcf0ca8aabab5cb39f2613cec891afc0bd.zip | |
Implement P0004R1 'Remove Deprecated iostreams aliases'
llvm-svn: 251618
Diffstat (limited to 'libcxx/test/std/depr')
5 files changed, 25 insertions, 0 deletions
diff --git a/libcxx/test/std/depr/depr.ios.members/io_state.pass.cpp b/libcxx/test/std/depr/depr.ios.members/io_state.pass.cpp index 15bfbf19780..6b362d01603 100644 --- a/libcxx/test/std/depr/depr.ios.members/io_state.pass.cpp +++ b/libcxx/test/std/depr/depr.ios.members/io_state.pass.cpp @@ -15,11 +15,16 @@ // typedef T1 io_state; // }; +// These members were removed for C++17 + +#include "test_macros.h" #include <strstream> #include <cassert> int main() { +#if TEST_STD_VER <= 14 std::strstream::io_state b = std::strstream::eofbit; assert(b == std::ios::eofbit); +#endif } diff --git a/libcxx/test/std/depr/depr.ios.members/open_mode.pass.cpp b/libcxx/test/std/depr/depr.ios.members/open_mode.pass.cpp index 12a8e945880..cf91e7c9d1d 100644 --- a/libcxx/test/std/depr/depr.ios.members/open_mode.pass.cpp +++ b/libcxx/test/std/depr/depr.ios.members/open_mode.pass.cpp @@ -15,11 +15,16 @@ // typedef T2 open_mode; // }; +// These members were removed for C++17 + +#include "test_macros.h" #include <strstream> #include <cassert> int main() { +#if TEST_STD_VER <= 14 std::strstream::open_mode b = std::strstream::app; assert(b == std::ios::app); +#endif } diff --git a/libcxx/test/std/depr/depr.ios.members/seek_dir.pass.cpp b/libcxx/test/std/depr/depr.ios.members/seek_dir.pass.cpp index 891a7a34563..0dd70c10185 100644 --- a/libcxx/test/std/depr/depr.ios.members/seek_dir.pass.cpp +++ b/libcxx/test/std/depr/depr.ios.members/seek_dir.pass.cpp @@ -15,11 +15,16 @@ // typedef T3 seek_dir; // }; +// These members were removed for C++17 + +#include "test_macros.h" #include <strstream> #include <cassert> int main() { +#if TEST_STD_VER <= 14 std::strstream::seek_dir b = std::strstream::cur; assert(b == std::ios::cur); +#endif } diff --git a/libcxx/test/std/depr/depr.ios.members/streamoff.pass.cpp b/libcxx/test/std/depr/depr.ios.members/streamoff.pass.cpp index 4ccfd1f7d22..0c237b3547d 100644 --- a/libcxx/test/std/depr/depr.ios.members/streamoff.pass.cpp +++ b/libcxx/test/std/depr/depr.ios.members/streamoff.pass.cpp @@ -15,11 +15,16 @@ // typedef OFF_T streamoff; // }; +// These members were removed for C++17 + +#include "test_macros.h" #include <ios> #include <type_traits> int main() { +#if TEST_STD_VER <= 14 static_assert((std::is_integral<std::ios_base::streamoff>::value), ""); static_assert((std::is_signed<std::ios_base::streamoff>::value), ""); +#endif } diff --git a/libcxx/test/std/depr/depr.ios.members/streampos.pass.cpp b/libcxx/test/std/depr/depr.ios.members/streampos.pass.cpp index 315118cb3e3..863905f710e 100644 --- a/libcxx/test/std/depr/depr.ios.members/streampos.pass.cpp +++ b/libcxx/test/std/depr/depr.ios.members/streampos.pass.cpp @@ -15,10 +15,15 @@ // typedef POS_T streampos; // }; +// These members were removed for C++17 + +#include "test_macros.h" #include <ios> #include <type_traits> int main() { +#if TEST_STD_VER <= 14 static_assert((std::is_same<std::ios_base::streampos, std::streampos>::value), ""); +#endif } |

