forked from OSchip/llvm-project
[libc++] Temporarily disable the in_out_result test on Fuchsia.
This commit is contained in:
parent
4614b93f53
commit
9e634b35ff
|
@ -16,10 +16,14 @@
|
||||||
// struct in_out_result;
|
// struct in_out_result;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
|
// FIXME(varconst): this test doesn't work on Fuchsia.
|
||||||
|
#ifndef __Fuchsia__
|
||||||
|
|
||||||
struct A {
|
struct A {
|
||||||
A(int&);
|
A(int&);
|
||||||
};
|
};
|
||||||
|
@ -42,7 +46,10 @@ static_assert(std::is_convertible_v<const std::ranges::in_out_result<int, int>&&
|
||||||
static_assert(!std::is_nothrow_convertible_v<const std::ranges::in_out_result<int, int>&&,
|
static_assert(!std::is_nothrow_convertible_v<const std::ranges::in_out_result<int, int>&&,
|
||||||
std::ranges::in_out_result<long, long>>);
|
std::ranges::in_out_result<long, long>>);
|
||||||
|
|
||||||
|
#endif // __Fuchsia__
|
||||||
|
|
||||||
int main(int, char**) {
|
int main(int, char**) {
|
||||||
|
#ifndef __Fuchsia__
|
||||||
// Conversion, fundamental types.
|
// Conversion, fundamental types.
|
||||||
{
|
{
|
||||||
std::ranges::in_out_result<int, bool> x = {2, false};
|
std::ranges::in_out_result<int, bool> x = {2, false};
|
||||||
|
@ -127,6 +134,8 @@ int main(int, char**) {
|
||||||
static_assert(
|
static_assert(
|
||||||
!std::is_convertible_v<std::ranges::in_out_result<Foo1, Foo2>, std::ranges::in_out_result<Bar1, Bar2>>);
|
!std::is_convertible_v<std::ranges::in_out_result<Foo1, Foo2>, std::ranges::in_out_result<Bar1, Bar2>>);
|
||||||
}
|
}
|
||||||
|
#endif // __Fuchsia__
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue