Rename function parameters to avoid shadowing. Patch from STL@microsoft.com
authorEric Fiselier <eric@efcs.ca>
Thu, 28 Apr 2016 02:00:52 +0000 (02:00 +0000)
committerEric Fiselier <eric@efcs.ca>
Thu, 28 Apr 2016 02:00:52 +0000 (02:00 +0000)
llvm-svn: 267838

libcxx/test/std/thread/futures/futures.async/async.pass.cpp

index 2c1313b..5b1a60c 100644 (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()