blob: ac0ba2e54f86e8b427d4c9fc4f448b2a57034d4e [file] [log] [blame]
// { dg-additional-options "-fsyntax-only -w" }
#include "coro.h"
struct Foo {
Foo () { co_await coro::suspend_always{}; } // { dg-error "cannot be used in a constructor" }
~Foo () { co_await coro::suspend_always{}; } // { dg-error "cannot be used in a destructor" }
};