(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
coroutines/
co-await-syntax-04-ctor-dtor.C
//  { 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" }
};