1 //  { dg-additional-options "-fsyntax-only -w" }
2 
3 #include "coro.h"
4 
5 struct Foo {
FooFoo6   Foo ()  { co_return; } // { dg-error "cannot be used in a constructor" }
~FooFoo7   ~Foo () { co_return 5; } // { dg-error "cannot be used in a destructor" }
8 };
9