(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
coroutines/
coro-bad-grooaf-00-static.C
/* g-r-o-o-a-f should be static.  */

#define BAD_GROOAF_STATIC
#define PROVIDE_GROOAF
#include "coro1-allocators.h"

int used_grooaf = 0;

struct coro1
f () noexcept
{
  PRINT ("coro1: about to return");
  co_return;
} // { dg-error {cannot call member function 'coro1 coro1::promise_type::get_return_object_on_allocation_failure\(\)' without object} }