[libcxx-commits] [libcxx] 6a8ed4a - [libc++] Fix test failure in C++03 mode

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 9 10:05:43 PDT 2020


Author: Louis Dionne
Date: 2020-07-09T13:05:22-04:00
New Revision: 6a8ed4a8ffdc7ec2dcc6038a494924a3d5a2b3a3

URL: https://github.com/llvm/llvm-project/commit/6a8ed4a8ffdc7ec2dcc6038a494924a3d5a2b3a3
DIFF: https://github.com/llvm/llvm-project/commit/6a8ed4a8ffdc7ec2dcc6038a494924a3d5a2b3a3.diff

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

Added: 
    

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

Removed: 
    


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


        


More information about the libcxx-commits mailing list