Author: gornishanov Date: Wed Apr 4 16:43:50 2018 New Revision: 329240 URL: http://llvm.org/viewvc/llvm-project?rev=329240&view=rev Log: [coroutines] libcxx noop_coroutine. Make bots happier
Modified: libcxx/trunk/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.noop/noop_coroutine.pass.cpp Modified: libcxx/trunk/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.noop/noop_coroutine.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.noop/noop_coroutine.pass.cpp?rev=329240&r1=329239&r2=329240&view=diff ============================================================================== --- libcxx/trunk/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.noop/noop_coroutine.pass.cpp (original) +++ libcxx/trunk/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.noop/noop_coroutine.pass.cpp Wed Apr 4 16:43:50 2018 @@ -10,6 +10,8 @@ // UNSUPPORTED: c++98, c++03, c++11 // XFAIL: clang-5, clang-6 +// UNSUPPORTED: ubsan + // <experimental/coroutine> // struct noop_coroutine_promise; // using noop_coroutine_handle = coroutine_handle<noop_coroutine_promise>; @@ -19,8 +21,11 @@ #include <cassert> #include <type_traits> +#if __has_builtin(__builtin_coro_noop) + namespace coro = std::experimental::coroutines_v1; + static_assert(std::is_same<coro::coroutine_handle<coro::noop_coroutine_promise>, coro::noop_coroutine_handle>::value, ""); static_assert(std::is_same<decltype(coro::noop_coroutine()), coro::noop_coroutine_handle>::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) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits