blob: e7d04346d576eef3d24aed5124fb7e955799f7bf [file] [log] [blame]
/* 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} }