Debian Codegraph @

gcc/testsuite/g++.dg/coroutines/coro-bad-grooaf-00-static.C

raw
1 /* g-r-o-o-a-f should be static. */
2
3 #define BAD_GROOAF_STATIC
4 #define PROVIDE_GROOAF
5 #include "coro1-allocators.h"
6
7 int used_grooaf = 0;
8
9 struct coro1
10 f () noexcept // { dg-error {cannot call member function 'coro1 coro1::promise_type::get_return_object_on_allocation_failure\(\)' without object} }
11 // { dg-error {'get_return_object_on_allocation_failure' is provided by.*} "" { target *-*-* } .-1 }
12 {
13 PRINT ("coro1: about to return");
14 co_return;
15 }