diff options
author | Louis Dionne <ldionne@apple.com> | 2020-07-09 20:03:00 +0300 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2020-07-09 20:05:22 +0300 |
commit | 6a8ed4a8ffdc7ec2dcc6038a494924a3d5a2b3a3 (patch) | |
tree | a50f9d716d05740a59fdc87d923a3db495c48c65 /libcxx | |
parent | 06fc125d8c5d7d1244ee2160fba52bc1b91ddb99 (diff) |
[libc++] Fix test failure in C++03 mode
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/test/libcxx/experimental/language.support/support.coroutines/dialect_support.pass.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/libcxx/experimental/language.support/support.coroutines/dialect_support.pass.cpp b/libcxx/test/libcxx/experimental/language.support/support.coroutines/dialect_support.pass.cpp index 2f2a57868b09..a168ee516b6c 100644 --- a/libcxx/test/libcxx/experimental/language.support/support.coroutines/dialect_support.pass.cpp +++ b/libcxx/test/libcxx/experimental/language.support/support.coroutines/dialect_support.pass.cpp @@ -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)); |