From fa5ebe70ca0f102ee567745561d0f958b639c320 Mon Sep 17 00:00:00 2001 From: Michael Schellenberger Costa Date: Thu, 19 Sep 2024 20:40:22 +0200 Subject: [PATCH] Disable constexpr tests for MSVC2017 due to constant folding --- .../alg.sort/partial.sort.copy/partial_sort_copy.pass.cpp | 4 ++-- .../partial.sort.copy/partial_sort_copy_comp.pass.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libcudacxx/test/libcudacxx/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/partial_sort_copy.pass.cpp b/libcudacxx/test/libcudacxx/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/partial_sort_copy.pass.cpp index f2302f5f43..d3217b85ba 100644 --- a/libcudacxx/test/libcudacxx/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/partial_sort_copy.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/partial_sort_copy.pass.cpp @@ -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; } diff --git a/libcudacxx/test/libcudacxx/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/partial_sort_copy_comp.pass.cpp b/libcudacxx/test/libcudacxx/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/partial_sort_copy_comp.pass.cpp index a8a9b010fa..45bced305b 100644 --- a/libcudacxx/test/libcudacxx/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/partial_sort_copy_comp.pass.cpp +++ b/libcudacxx/test/libcudacxx/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/partial_sort_copy_comp.pass.cpp @@ -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; }