From b6d12a2b3aade4b05cc0ef91525b50b29355c6d2 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Sat, 16 May 2015 17:10:49 +0000 Subject: [PATCH] Fix test that was failing on C++03 b/c it was using initializer lists git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@237527 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../vector/vector.cons/assign_initializer_list.pass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/std/containers/sequences/vector/vector.cons/assign_initializer_list.pass.cpp b/test/std/containers/sequences/vector/vector.cons/assign_initializer_list.pass.cpp index c40583b29..3cb0b3b09 100644 --- a/test/std/containers/sequences/vector/vector.cons/assign_initializer_list.pass.cpp +++ b/test/std/containers/sequences/vector/vector.cons/assign_initializer_list.pass.cpp @@ -20,6 +20,7 @@ template void test ( Vec &v ) { +#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS v.assign({3, 4, 5, 6}); assert(v.size() == 4); assert(is_contiguous_container_asan_correct(v)); @@ -27,11 +28,11 @@ void test ( Vec &v ) assert(v[1] == 4); assert(v[2] == 5); assert(v[3] == 6); +#endif } int main() { -#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS { typedef std::vector V; V d1; @@ -51,5 +52,4 @@ int main() test(d2); } #endif -#endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS }