Rename function parameters to avoid shadowing. Patch from STL@microsoft.com

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267838 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2016-04-28 02:00:52 +00:00
parent 4596c29195
commit a32eb83b2f

View File

@@ -47,10 +47,10 @@ void f2()
std::this_thread::sleep_for(ms(200));
}
std::unique_ptr<int> f3(int i)
std::unique_ptr<int> f3(int j)
{
std::this_thread::sleep_for(ms(200));
return std::unique_ptr<int>(new int(i));
return std::unique_ptr<int>(new int(j));
}
std::unique_ptr<int> f4(std::unique_ptr<int>&& p)
@@ -59,10 +59,10 @@ std::unique_ptr<int> f4(std::unique_ptr<int>&& p)
return std::move(p);
}
void f5(int i)
void f5(int j)
{
std::this_thread::sleep_for(ms(200));
throw i;
throw j;
}
int main()