Skip to content

Commit

Permalink
Disable constexpr tests for MSVC2017 due to constant folding
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Sep 20, 2024
1 parent 388aff2 commit fa5ebe7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 bool test()
int main(int, char**)
{
test();
#if TEST_STD_VER >= 2014
#if TEST_STD_VER >= 2014 && !defined(TEST_COMPILER_MSVC_2017)
static_assert(test(), "");
#endif // TEST_STD_VER >= 2014
#endif // TEST_STD_VER >= 2014 && ! TEST_COMPILER_MSVC_2017

return 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ __host__ __device__ TEST_CONSTEXPR_CXX14 bool test()
int main(int, char**)
{
test();
#if TEST_STD_VER >= 2014
#if TEST_STD_VER >= 2014 && !defined(TEST_COMPILER_MSVC_2017)
static_assert(test(), "");
#endif // TEST_STD_VER >= 2014
#endif // TEST_STD_VER >= 2014 && ! TEST_COMPILER_MSVC_2017

return 0;
}

0 comments on commit fa5ebe7

Please sign in to comment.