mirror of
https://github.com/intel/llvm.git
synced 2026-01-27 06:06:34 +08:00
Fix silly mistakes in recent changes made to coroutine test
llvm-svn: 304364
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user