diff options
| author | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2016-11-04 20:26:59 +0000 |
|---|---|---|
| committer | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2016-11-04 20:26:59 +0000 |
| commit | 0f901c7ec4a39f07fd6b942839b669506e3247fb (patch) | |
| tree | 2eb0ab0e92c2c5b0d10124d17c567811e7fc08bb /libcxx/test/std/iterators/iterator.range | |
| parent | 6100118a52828c0a824aea5492e4e5f9ec3ce5c5 (diff) | |
| download | bcm5719-llvm-0f901c7ec4a39f07fd6b942839b669506e3247fb.tar.gz bcm5719-llvm-0f901c7ec4a39f07fd6b942839b669506e3247fb.zip | |
[libcxx] [test] Replace _LIBCPP_STD_VER with TEST_STD_VER.
This replaces every occurrence of _LIBCPP_STD_VER in the tests with
TEST_STD_VER. Additionally, for every affected
file, #include "test_macros.h" is being added explicitly if it wasn't
already there.
https://reviews.llvm.org/D26294
llvm-svn: 286007
Diffstat (limited to 'libcxx/test/std/iterators/iterator.range')
| -rw-r--r-- | libcxx/test/std/iterators/iterator.range/begin-end.pass.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libcxx/test/std/iterators/iterator.range/begin-end.pass.cpp b/libcxx/test/std/iterators/iterator.range/begin-end.pass.cpp index 4f7405355ca..68186919198 100644 --- a/libcxx/test/std/iterators/iterator.range/begin-end.pass.cpp +++ b/libcxx/test/std/iterators/iterator.range/begin-end.pass.cpp @@ -32,7 +32,7 @@ void test_const_container( const C & c, typename C::value_type val ) { assert (*std::begin(c) == val ); assert ( std::begin(c) != c.end()); assert ( std::end(c) == c.end()); -#if _LIBCPP_STD_VER > 11 +#if TEST_STD_VER > 11 assert ( std::cbegin(c) == c.cbegin()); assert ( std::cbegin(c) != c.cend()); assert ( std::cend(c) == c.cend()); @@ -51,7 +51,7 @@ void test_const_container( const std::initializer_list<T> & c, T val ) { assert (*std::begin(c) == val ); assert ( std::begin(c) != c.end()); assert ( std::end(c) == c.end()); -#if _LIBCPP_STD_VER > 11 +#if TEST_STD_VER > 11 // initializer_list doesn't have cbegin/cend/rbegin/rend // but std::cbegin(),etc work (b/c they're general fn templates) // assert ( std::cbegin(c) == c.cbegin()); @@ -72,7 +72,7 @@ void test_container( C & c, typename C::value_type val ) { assert (*std::begin(c) == val ); assert ( std::begin(c) != c.end()); assert ( std::end(c) == c.end()); -#if _LIBCPP_STD_VER > 11 +#if TEST_STD_VER > 11 assert ( std::cbegin(c) == c.cbegin()); assert ( std::cbegin(c) != c.cend()); assert ( std::cend(c) == c.cend()); @@ -91,7 +91,7 @@ void test_container( std::initializer_list<T> & c, T val ) { assert (*std::begin(c) == val ); assert ( std::begin(c) != c.end()); assert ( std::end(c) == c.end()); -#if _LIBCPP_STD_VER > 11 +#if TEST_STD_VER > 11 // initializer_list doesn't have cbegin/cend/rbegin/rend // assert ( std::cbegin(c) == c.cbegin()); // assert ( std::cbegin(c) != c.cend()); @@ -111,7 +111,7 @@ void test_const_array( const T (&array)[Sz] ) { assert (*std::begin(array) == array[0] ); assert ( std::begin(array) != std::end(array)); assert ( std::end(array) == array + Sz); -#if _LIBCPP_STD_VER > 11 +#if TEST_STD_VER > 11 assert ( std::cbegin(array) == array ); assert (*std::cbegin(array) == array[0] ); assert ( std::cbegin(array) != std::cend(array)); @@ -137,7 +137,7 @@ int main(){ static constexpr int arrA [] { 1, 2, 3 }; test_const_array ( arrA ); -#if _LIBCPP_STD_VER > 11 +#if TEST_STD_VER > 11 constexpr const int *b = std::cbegin(arrA); constexpr const int *e = std::cend(arrA); static_assert(e - b == 3, ""); |

