From ab465be9263d5e2fab7157e02a9dc900aba3552b Mon Sep 17 00:00:00 2001 From: Gor Nishanov Date: Wed, 4 Apr 2018 23:43:50 +0000 Subject: [PATCH] [coroutines] libcxx noop_coroutine. Make bots happier git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@329240 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../coroutine.handle.noop/noop_coroutine.pass.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.noop/noop_coroutine.pass.cpp b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.noop/noop_coroutine.pass.cpp index 4ff9414df..9682e808b 100644 --- a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.noop/noop_coroutine.pass.cpp +++ b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.noop/noop_coroutine.pass.cpp @@ -10,6 +10,8 @@ // UNSUPPORTED: c++98, c++03, c++11 // XFAIL: clang-5, clang-6 +// UNSUPPORTED: ubsan + // // struct noop_coroutine_promise; // using noop_coroutine_handle = coroutine_handle; @@ -19,8 +21,11 @@ #include #include +#if __has_builtin(__builtin_coro_noop) + namespace coro = std::experimental::coroutines_v1; + static_assert(std::is_same, coro::noop_coroutine_handle>::value, ""); static_assert(std::is_same::value, ""); @@ -64,3 +69,8 @@ int main() assert(coro::coroutine_handle<>::from_address(h.address()) == base); } +#else + +int main() {} + +#endif // __has_builtin(__builtin_coro_noop)