forked from OSchip/llvm-project
[libc++] Fix some constexpr tests broken by D68837
This doesn't fix all the issues with D68837
This commit is contained in:
parent
dde589389f
commit
e9612e9e85
|
@ -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};
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue