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

@@ -70,7 +70,7 @@ int main()
std::multiset<int>::const_iterator k = i;
assert(i == k);
for (int j = 1; j <= 8; ++j)
for (int k = 0; k < 3; ++k, ++i)
for (int n = 0; n < 3; ++n, ++i)
assert(*i == j);
}
{
@@ -151,7 +151,7 @@ int main()
std::multiset<int, std::less<int>, min_allocator<int>>::const_iterator k = i;
assert(i == k);
for (int j = 1; j <= 8; ++j)
for (int k = 0; k < 3; ++k, ++i)
for (int n = 0; n < 3; ++n, ++i)
assert(*i == j);
}
{