summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/algorithms/alg.sorting
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-04-28 02:45:11 +0000
committerEric Fiselier <eric@efcs.ca>2016-04-28 02:45:11 +0000
commit0d6279198358b14fc4547d49570aca462ab5289a (patch)
treeaefeabce9287f4dc37e7fbe64311321845e0375e /libcxx/test/std/algorithms/alg.sorting
parent0f9e91acc8ebe73f6a9795b1450e2a95b4485012 (diff)
downloadbcm5719-llvm-0d6279198358b14fc4547d49570aca462ab5289a.tar.gz
bcm5719-llvm-0d6279198358b14fc4547d49570aca462ab5289a.zip
Add braces, move braces, and rename variables to avoid shadowing. Patch from STL@microsoft.com
llvm-svn: 267844
Diffstat (limited to 'libcxx/test/std/algorithms/alg.sorting')
-rw-r--r--libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort/partial_sort_comp.pass.cpp2
1 files changed, 2 insertions, 0 deletions
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
{
OpenPOWER on IntegriCloud