Lines Matching defs:promise
115 struct promise; // expected-note {{forward declaration}}
119 struct std::coroutine_traits<void, T...> { using promise_type = promise; };
124 void undefined_promise() { // expected-error {{this function cannot be a coroutine: 'std::coroutine_traits<void>::promise_type' (aka 'promise') is an incomplete type}}
132 struct promise {
160 static coroutine_handle from_promise(PromiseType &promise);
168 static coroutine_handle from_promise(PromiseType &promise);
299 // expected-error@-1 {{no member named 'return_void' in 'promise'}}
827 template <> struct std::coroutine_traits<int, int, const char **> { using promise_type = promise; };
911 // expected-error@-1 2 {{'operator new' is required to have a non-throwing noexcept specification when the promise type declares 'get_return_object_on_allocation_failure()'}}
1062 // the promise type each find any declarations, the program is ill-formed.
1068 // So it isn't ill-formed if the promise doesn't define return_value and return_void.
1409 // Test that, when the promise type has a constructor whose signature matches