1 // RUN: %clang_cc1 -verify -std=c++20 -fsyntax-only %s
3 #include "Inputs/std-coroutine.h"
5 namespace std::experimental
{
6 using std::coroutine_handle
;
7 using std::coroutine_traits
; // expected-note{{declared here}}
8 } // namespace std::experimental
11 bool await_ready() noexcept
;
12 void await_suspend(std::coroutine_handle
<> coro
) noexcept
;
13 void await_resume() noexcept
;
17 void get_return_object();
18 my_awaitable
initial_suspend();
19 my_awaitable
final_suspend() noexcept
;
21 void unhandled_exception();
25 struct std::coroutine_traits
<void> { using promise_type
= promise_void
; };
29 // expected-warning@-1{{support for std::experimental::coroutine_traits will be removed}}