diff options
author | Louis Dionne <ldionne@apple.com> | 2019-11-07 12:30:32 +0000 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2019-11-07 12:39:10 +0000 |
commit | 83901cbe5e21906523b7073f8ec7beb4d5a91021 (patch) | |
tree | 2d2cdf3bec9b542c13aad243b45e1633433d70de /libcxx/test/std/algorithms/alg.modifying.operations/alg.copy | |
parent | e9612e9e851ccd288f83739a1950ebb45d212aee (diff) | |
download | bcm5719-llvm-83901cbe5e21906523b7073f8ec7beb4d5a91021.tar.gz bcm5719-llvm-83901cbe5e21906523b7073f8ec7beb4d5a91021.zip |
[libc++] Fixed copy/copy_n/copy_backward for compilers that do not support is_constant_evaluated.
Differential Revision: https://reviews.llvm.org/D69940
Diffstat (limited to 'libcxx/test/std/algorithms/alg.modifying.operations/alg.copy')
3 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy.pass.cpp b/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy.pass.cpp index 2cdd3b9799c..ab6aaa241b1 100644 --- a/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy.pass.cpp +++ b/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy.pass.cpp @@ -79,7 +79,7 @@ int main(int, char**) { test(); -#if TEST_STD_VER > 17 +#if TEST_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_BUILTIN_IS_CONSTANT_EVALUATED) static_assert(test()); #endif diff --git a/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy_backward.pass.cpp b/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy_backward.pass.cpp index 6eb403d525d..11eb21f202d 100644 --- a/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy_backward.pass.cpp +++ b/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy_backward.pass.cpp @@ -58,7 +58,7 @@ int main(int, char**) { test(); -#if TEST_STD_VER > 17 +#if TEST_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_BUILTIN_IS_CONSTANT_EVALUATED) static_assert(test()); #endif diff --git a/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy_n.pass.cpp b/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy_n.pass.cpp index 72c22b53b54..8c4900fe33b 100644 --- a/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy_n.pass.cpp +++ b/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy_n.pass.cpp @@ -82,7 +82,7 @@ int main(int, char**) { test(); -#if TEST_STD_VER > 17 +#if TEST_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_BUILTIN_IS_CONSTANT_EVALUATED) static_assert(test()); #endif |