Skip to content

Commit 6a8ed4a

Browse files
committed
[libc++] Fix test failure in C++03 mode
1 parent 06fc125 commit 6a8ed4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libcxx/test/libcxx/experimental/language.support/support.coroutines/dialect_support.pass.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
#include <experimental/coroutine>
1818

19+
#include "test_macros.h"
20+
1921
namespace coro = std::experimental::coroutines_v1;
2022

2123
coro::suspend_always sa;
@@ -25,7 +27,7 @@ struct MyFuture {
2527
struct promise_type {
2628
typedef coro::coroutine_handle<promise_type> HandleT;
2729
coro::suspend_never initial_suspend() { return sn; }
28-
coro::suspend_always final_suspend() noexcept { return sa; }
30+
coro::suspend_always final_suspend() TEST_NOEXCEPT { return sa; }
2931
coro::suspend_never yield_value(int) { return sn; }
3032
MyFuture get_return_object() {
3133
MyFuture f(HandleT::from_promise(*this));

0 commit comments

Comments
 (0)