[libcxx] r268153 - Replace one more occurrence of non-standard std:launch::any. Patch from STL at microsoft.com

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 29 19:30:20 PDT 2016


Author: ericwf
Date: Fri Apr 29 21:30:18 2016
New Revision: 268153

URL: http://llvm.org/viewvc/llvm-project?rev=268153&view=rev
Log:
Replace one more occurrence of non-standard std:launch::any. Patch from STL at microsoft.com

Modified:
    libcxx/trunk/test/std/thread/futures/futures.async/async.pass.cpp

Modified: libcxx/trunk/test/std/thread/futures/futures.async/async.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/thread/futures/futures.async/async.pass.cpp?rev=268153&r1=268152&r2=268153&view=diff
==============================================================================
--- libcxx/trunk/test/std/thread/futures/futures.async/async.pass.cpp (original)
+++ libcxx/trunk/test/std/thread/futures/futures.async/async.pass.cpp Fri Apr 29 21:30:18 2016
@@ -132,7 +132,7 @@ int main()
         test<void>(checkVoid, DPID,  f2);
         test<void>(checkVoid, false, std::launch::async, f2);
         test<void>(checkVoid, true,  std::launch::deferred, f2);
-        test<void>(checkVoid, DPID,  std::launch::any, f2);
+        test<void>(checkVoid, DPID,  AnyPolicy, f2);
     }
     {
         using Ret = std::unique_ptr<int>;
@@ -143,11 +143,11 @@ int main()
     {
         std::future<void> f = std::async(f5, 3);
         std::this_thread::sleep_for(ms(300));
-        try { f.get(); assert (false); } catch ( int ex ) {}
+        try { f.get(); assert (false); } catch ( int ) {}
     }
     {
         std::future<void> f = std::async(std::launch::deferred, f5, 3);
         std::this_thread::sleep_for(ms(300));
-        try { f.get(); assert (false); } catch ( int ex ) {}
+        try { f.get(); assert (false); } catch ( int ) {}
     }
 }




More information about the cfe-commits mailing list