From 51072bd6bf79ef2bc6a922079bff57c31c1effbc Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 23 Jul 2016 20:47:26 +0000 Subject: Vendor import of libc++ release_39 branch r276489: https://llvm.org/svn/llvm-project/libcxx/branches/release_39@276489 --- test/std/iterators/iterator.container/empty.pass.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test/std/iterators/iterator.container/empty.pass.cpp') diff --git a/test/std/iterators/iterator.container/empty.pass.cpp b/test/std/iterators/iterator.container/empty.pass.cpp index f26cb98e1aed..f9b8b94a89f9 100644 --- a/test/std/iterators/iterator.container/empty.pass.cpp +++ b/test/std/iterators/iterator.container/empty.pass.cpp @@ -12,7 +12,9 @@ // template constexpr bool empty(const T (&array)[N]) noexcept; // C++17 // template constexpr bool empty(initializer_list il) noexcept; // C++17 -#if __cplusplus <= 201402L +#include "test_macros.h" + +#if TEST_STD_VER <= 14 int main () {} #else @@ -40,7 +42,7 @@ void test_container( C& c ) { assert ( std::empty(c) == c.empty()); } - + template void test_container( std::initializer_list& c ) { @@ -59,7 +61,7 @@ int main() std::list l; l.push_back(2); std::array a; a[0] = 3; std::initializer_list il = { 4 }; - + test_container ( v ); test_container ( l ); test_container ( a ); @@ -69,7 +71,7 @@ int main() test_const_container ( l ); test_const_container ( a ); test_const_container ( il ); - + static constexpr int arrA [] { 1, 2, 3 }; test_const_array ( arrA ); } -- cgit v1.2.3