From 0d6279198358b14fc4547d49570aca462ab5289a Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Thu, 28 Apr 2016 02:45:11 +0000 Subject: Add braces, move braces, and rename variables to avoid shadowing. Patch from STL@microsoft.com llvm-svn: 267844 --- .../alg.sorting/alg.sort/partial.sort/partial_sort_comp.pass.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libcxx/test/std/algorithms/alg.sorting') diff --git a/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort/partial_sort_comp.pass.cpp b/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort/partial_sort_comp.pass.cpp index d822f6c388c..4b7c5ee64c2 100644 --- a/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort/partial_sort_comp.pass.cpp +++ b/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort/partial_sort_comp.pass.cpp @@ -62,6 +62,7 @@ test_larger_sorts(unsigned N) int main() { + { int i = 0; std::partial_sort(&i, &i, &i); assert(i == 0); @@ -73,6 +74,7 @@ int main() test_larger_sorts(997); test_larger_sorts(1000); test_larger_sorts(1009); + } #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES { -- cgit v1.2.3