Add braces, move braces, and rename variables to avoid shadowing. Patch from STL@microsoft.com

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267844 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2016-04-28 02:45:11 +00:00
parent ce24f965f1
commit 849c551745
5 changed files with 10 additions and 4 deletions

View File

@@ -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
{