Debian Codegraph @

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

raw
1 // { dg-additional-options "-w" }
2
3 #include "coro.h"
4
5 using namespace std;
6
7 struct task {
8 struct promise_type {
9 promise_type() {}
10 task get_return_object() { return {}; }
11 suspend_never initial_suspend() { return {}; }
12 suspend_never final_suspend() noexcept { return {}; }
13 void return_void() {}
14 void unhandled_exception() {}
15 };
16 };
17
18 task foo(int) {
19 co_return;
20 }