Skip to content

Commit 305b500

Browse files
committed
[libc++] Fix test failures in C++14 mode
1 parent 6709150 commit 305b500

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/mutex_duration.pass.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ms ShortTime = ms(50);
3838

3939
static const unsigned Threads = 5;
4040

41-
std::atomic<unsigned> CountDown = Threads;
41+
std::atomic<unsigned> CountDown(Threads);
4242

4343
void f1()
4444
{

‎libcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/mutex_time_point.pass.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ms ShortTime = ms(50);
3838

3939
static constexpr unsigned Threads = 5;
4040

41-
std::atomic<unsigned> CountDown = Threads;
41+
std::atomic<unsigned> CountDown(Threads);
4242

4343
void f1()
4444
{

0 commit comments

Comments
 (0)