Skip to content

Commit

Permalink
Suppress some failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Jul 11, 2023
1 parent fab728e commit c8b1806
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ __host__ __device__ constexpr bool check_back( double val )

int main(int, char**)
{
#ifndef TEST_COMPILER_MSVC_2017
{
typedef double T;
typedef cuda::std::array<T, 3> C;
Expand Down Expand Up @@ -123,6 +124,7 @@ int main(int, char**)
static_assert (check_back (3.5), "");
}
#endif
#endif // !TEST_COMPILER_MSVC_2017

return 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ __host__ __device__ constexpr bool check_idx( size_t idx, double val )

int main(int, char**)
{
#ifndef TEST_COMPILER_MSVC_2017
{
typedef double T;
typedef cuda::std::array<T, 3> C;
Expand Down Expand Up @@ -115,6 +116,7 @@ int main(int, char**)
static_assert (check_idx(2, 3.5), "");
}
#endif
#endif // !TEST_COMPILER_MSVC_2017

return 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ inline constexpr bool
has_no_iter_difference_t<T, cuda::std::void_t<cuda::std::iter_difference_t<T>>> = false;
#endif

#ifndef TEST_COMPILER_MSVC_2017 // MSVC 2017 cannot make this a constexpr function
template <class T, class Expected>
__host__ __device__ constexpr bool check_iter_difference_t() {
constexpr bool result = cuda::std::same_as<cuda::std::iter_difference_t<T>, Expected>;
Expand All @@ -52,6 +53,7 @@ struct int_subtraction {
__host__ __device__ friend int operator-(int_subtraction, int_subtraction);
};
static_assert(check_iter_difference_t<int_subtraction, int>());
#endif // !TEST_COMPILER_MSVC_2017

static_assert(has_no_iter_difference_t<void>);
static_assert(has_no_iter_difference_t<double>);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include <cuda/std/concepts>

#ifndef TEST_COMPILER_MSVC_2017 // MSVC 2017 cannot make this a constexpr function
template <class T, class Expected>
__host__ __device__ constexpr bool check_iter_value_t() {
constexpr bool result = cuda::std::same_as<cuda::std::iter_value_t<T>, Expected>;
Expand All @@ -41,6 +42,7 @@ struct both_members {
using element_type = double;
};
static_assert(check_iter_value_t<both_members, double>());
#endif // !TEST_COMPILER_MSVC_2017

// clang-format off
template <class T, class = void>
Expand Down

0 comments on commit c8b1806

Please sign in to comment.