Debian Codegraph @

gcc/testsuite/g++.dg/coroutines/coro-bad-grooaf-01-grooaf-expected.C

raw
1 /* g-r-o-o-a-f would be expected, since we have a noexcept op new. */
2
3 #define USE_FAILING_OP_NEW
4 #include "coro1-allocators.h"
5
6 int used_grooaf = 0;
7
8 struct coro1
9 f () noexcept // { dg-warning {'operator new' is marked 'throw\(\)' or 'noexcept' but no usable 'get_return_object_on_allocation_failure' is provided by 'std::__n4861::__coroutine_traits_impl<coro1, void>::promise_type' \{aka 'coro1::promise_type'\}} }
10 {
11 PRINT ("coro1: about to return");
12 co_return;
13 }
14