From 5ead340ec2917f22b7a6d2dbd5b8b149852e94dd Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Wed, 31 May 2017 22:20:42 +0000 Subject: [PATCH] Fix silly mistakes in recent changes made to coroutine test git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@304364 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../support.coroutines/end.to.end/fullexpr-dtor.pass.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.pass.cpp b/test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.pass.cpp index 425a45657..20bcf60fb 100644 --- a/test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.pass.cpp +++ b/test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.pass.cpp @@ -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);