Need to wrap a bit in an ifdef, since there are no initializer_lists in C++03
authorMarshall Clow <mclow.lists@gmail.com>
Wed, 11 Feb 2015 15:48:21 +0000 (15:48 +0000)
committerMarshall Clow <mclow.lists@gmail.com>
Wed, 11 Feb 2015 15:48:21 +0000 (15:48 +0000)
llvm-svn: 228840

libcxx/test/std/algorithms/alg.sorting/alg.min.max/minmax_init_list_comp.pass.cpp

index beae3b6..a66b2ff 100644 (file)
@@ -23,6 +23,7 @@
 
 bool all_equal(int a, int b) { return false; } // everything is equal
 
+#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
 void test_all_equal(std::initializer_list<int> il)
 {
     binary_counting_predicate<bool(*)(int, int), int, int> pred (all_equal);
@@ -32,6 +33,7 @@ void test_all_equal(std::initializer_list<int> il)
     assert(p.second == *--ptr);
     assert(pred.count() <= ((3 * il.size()) / 2));
 }
+#endif
 
 int main()
 {