[libcxx-commits] [libcxx] e9612e9 - [libc++] Fix some constexpr tests broken by D68837
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Nov 7 04:29:38 PST 2019
Author: Louis Dionne
Date: 2019-11-07T12:29:17Z
New Revision: e9612e9e851ccd288f83739a1950ebb45d212aee
URL: https://github.com/llvm/llvm-project/commit/e9612e9e851ccd288f83739a1950ebb45d212aee
DIFF: https://github.com/llvm/llvm-project/commit/e9612e9e851ccd288f83739a1950ebb45d212aee.diff
LOG: [libc++] Fix some constexpr tests broken by D68837
This doesn't fix all the issues with D68837
Added:
Modified:
libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy.pass.cpp
libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy_backward.pass.cpp
libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy_if.pass.cpp
libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy_n.pass.cpp
Removed:
################################################################################
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 cc99859d8a74..2cdd3b9799c1 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
@@ -23,7 +23,7 @@ TEST_CONSTEXPR_CXX20 void
test_copy()
{
const unsigned N = 1000;
- int ia[N];
+ int ia[N] = {};
for (unsigned i = 0; i < N; ++i)
ia[i] = i;
int ib[N] = {0};
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 0678257b4f61..6eb403d525dc 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
@@ -25,7 +25,7 @@ TEST_CONSTEXPR_CXX20 void
test_copy_backward()
{
const unsigned N = 1000;
- int ia[N];
+ int ia[N] = {};
for (unsigned i = 0; i < N; ++i)
ia[i] = i;
int ib[N] = {0};
diff --git a/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy_if.pass.cpp b/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy_if.pass.cpp
index 407e18f2a9e7..a5e971ceb640 100644
--- a/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy_if.pass.cpp
+++ b/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy_if.pass.cpp
@@ -30,7 +30,7 @@ TEST_CONSTEXPR_CXX20 void
test_copy_if()
{
const unsigned N = 1000;
- int ia[N];
+ int ia[N] = {};
for (unsigned i = 0; i < N; ++i)
ia[i] = i;
int ib[N] = {0};
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 179e4f1bb340..72c22b53b549 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
@@ -26,7 +26,7 @@ TEST_CONSTEXPR_CXX20 void
test_copy_n()
{
const unsigned N = 1000;
- int ia[N];
+ int ia[N] = {};
for (unsigned i = 0; i < N; ++i)
ia[i] = i;
int ib[N] = {0};
More information about the libcxx-commits
mailing list