[libc++] Fix test failure in C++03 mode

This commit is contained in:
Louis Dionne 2020-07-09 13:03:00 -04:00
parent 06fc125d8c
commit 6a8ed4a8ff
1 changed files with 3 additions and 1 deletions

View File

@ -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));