Debian Codegraph @

gcc/testsuite/g++.dg/coroutines/pr102051.C

raw
1 #include <coroutine>
2
3 struct Foo {
4 ~Foo() noexcept(false); // true succeeds
5 struct promise_type {
6 Foo get_return_object() { return {}; }
7 std::suspend_never initial_suspend() { return {}; }
8 void return_void() {}
9 void unhandled_exception() {}
10 std::suspend_always final_suspend() noexcept { return {}; }
11 };
12 };
13
14 Foo bar() {
15 co_return;
16 }