From 4ab45349641cdfe9a048a8225adeb38eb8b98fa0 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Thu, 27 Feb 2014 16:13:36 +0000 Subject: More LWG issues. Mark #2182, #2323 and #2213 as complete. Add a test for #2339, and mark that as complete. No actual changes to the libc++ code; all of these were already in place. llvm-svn: 202407 --- libcxx/test/algorithms/alg.sorting/alg.nth.element/nth_element.pass.cpp | 1 + .../algorithms/alg.sorting/alg.nth.element/nth_element_comp.pass.cpp | 1 + 2 files changed, 2 insertions(+) (limited to 'libcxx/test/algorithms/alg.sorting/alg.nth.element') diff --git a/libcxx/test/algorithms/alg.sorting/alg.nth.element/nth_element.pass.cpp b/libcxx/test/algorithms/alg.sorting/alg.nth.element/nth_element.pass.cpp index 5104ce90eb6..dc5564eb3fc 100644 --- a/libcxx/test/algorithms/alg.sorting/alg.nth.element/nth_element.pass.cpp +++ b/libcxx/test/algorithms/alg.sorting/alg.nth.element/nth_element.pass.cpp @@ -29,6 +29,7 @@ test_one(unsigned N, unsigned M) std::random_shuffle(array, array+N); std::nth_element(array, array+M, array+N); assert(array[M] == M); + std::nth_element(array, array+N, array+N); // begin, end, end delete [] array; } diff --git a/libcxx/test/algorithms/alg.sorting/alg.nth.element/nth_element_comp.pass.cpp b/libcxx/test/algorithms/alg.sorting/alg.nth.element/nth_element_comp.pass.cpp index 538ec224219..cf8659038f1 100644 --- a/libcxx/test/algorithms/alg.sorting/alg.nth.element/nth_element_comp.pass.cpp +++ b/libcxx/test/algorithms/alg.sorting/alg.nth.element/nth_element_comp.pass.cpp @@ -42,6 +42,7 @@ test_one(unsigned N, unsigned M) std::random_shuffle(array, array+N); std::nth_element(array, array+M, array+N, std::greater()); assert(array[M] == N-M-1); + std::nth_element(array, array+N, array+N, std::greater()); // begin, end, end delete [] array; } -- cgit v1.2.3