forked from OSchip/llvm-project
[libc++] Fix test failure in C++03 mode
This commit is contained in:
parent
06fc125d8c
commit
6a8ed4a8ff
|
@ -16,6 +16,8 @@
|
|||
|
||||
#include <experimental/coroutine>
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
namespace coro = std::experimental::coroutines_v1;
|
||||
|
||||
coro::suspend_always sa;
|
||||
|
@ -25,7 +27,7 @@ struct MyFuture {
|
|||
struct promise_type {
|
||||
typedef coro::coroutine_handle<promise_type> HandleT;
|
||||
coro::suspend_never initial_suspend() { return sn; }
|
||||
coro::suspend_always final_suspend() noexcept { return sa; }
|
||||
coro::suspend_always final_suspend() TEST_NOEXCEPT { return sa; }
|
||||
coro::suspend_never yield_value(int) { return sn; }
|
||||
MyFuture get_return_object() {
|
||||
MyFuture f(HandleT::from_promise(*this));
|
||||
|
|
Loading…
Reference in New Issue