diff options
Diffstat (limited to 'test/PCH/coroutines.cpp')
-rw-r--r-- | test/PCH/coroutines.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/PCH/coroutines.cpp b/test/PCH/coroutines.cpp index 46a2872420bf6..f907d12137316 100644 --- a/test/PCH/coroutines.cpp +++ b/test/PCH/coroutines.cpp @@ -66,6 +66,14 @@ int f2(T x) { // checks coawait_expr and coroutine_body_stmt co_return x; // checks coreturn_stmt with expr } +struct S {}; +S operator co_await(S) { return S(); } + +template <typename T> +int f3(T x) { + co_await x; // checks dependent_coawait with overloaded co_await operator +} + #else // expected-no-diagnostics |