Author: ericwf
Date: Wed May 31 17:20:42 2017
New Revision: 304364

URL: http://llvm.org/viewvc/llvm-project?rev=304364&view=rev
Log:
Fix silly mistakes in recent changes made to coroutine test

Modified:
    
libcxx/trunk/test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.pass.cpp

Modified: 
libcxx/trunk/test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.pass.cpp
URL: 
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.pass.cpp?rev=304364&r1=304363&r2=304364&view=diff
==============================================================================
--- 
libcxx/trunk/test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.pass.cpp
 (original)
+++ 
libcxx/trunk/test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.pass.cpp
 Wed May 31 17:20:42 2017
@@ -72,8 +72,7 @@ coro2 a() {
 coro2 b() {
   reset();
   {
-    auto x = co_await Bug{};
-    ((void)x);
+    (void)(co_await Bug{});
     assert(ctor_called == 1);
     assert(dtor_called == 1);
     assert(alive == 0);
@@ -100,8 +99,7 @@ coro2 c() {
 coro2 d() {
   reset();
   {
-    auto x = co_yield 42;
-    ((void)x);
+    (void)(co_yield 42);
     assert(ctor_called == 1);
     assert(dtor_called == 1);
     assert(alive == 0);


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to