diff options
| author | Gor Nishanov <GorNishanov@gmail.com> | 2018-04-04 23:43:50 +0000 |
|---|---|---|
| committer | Gor Nishanov <GorNishanov@gmail.com> | 2018-04-04 23:43:50 +0000 |
| commit | 3a7fdb7d045f24fd2537b5f2f6ab576e1291ad89 (patch) | |
| tree | e1ae12f57352bb1e22d6c1a77bddd184c2fe203e /libcxx | |
| parent | b1e985db53168a30b9bb8b0a63f8b9f9d8264b3c (diff) | |
| download | bcm5719-llvm-3a7fdb7d045f24fd2537b5f2f6ab576e1291ad89.tar.gz bcm5719-llvm-3a7fdb7d045f24fd2537b5f2f6ab576e1291ad89.zip | |
[coroutines] libcxx noop_coroutine. Make bots happier
llvm-svn: 329240
Diffstat (limited to 'libcxx')
| -rw-r--r-- | libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.noop/noop_coroutine.pass.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.noop/noop_coroutine.pass.cpp b/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.noop/noop_coroutine.pass.cpp index 4ff9414dfdf..9682e808b08 100644 --- a/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.noop/noop_coroutine.pass.cpp +++ b/libcxx/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 + // <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) |

