[libcxx] r245415 - Use TestAtomic instead of std::atomic so the test can run in C++03
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 18 22:00:36 PDT 2015
Author: ericwf
Date: Wed Aug 19 00:00:36 2015
New Revision: 245415
URL: http://llvm.org/viewvc/llvm-project?rev=245415&view=rev
Log:
Use TestAtomic instead of std::atomic so the test can run in C++03
Modified:
libcxx/trunk/test/std/thread/thread.threads/thread.thread.class/thread.thread.member/detach.pass.cpp
Modified: libcxx/trunk/test/std/thread/thread.threads/thread.thread.class/thread.thread.member/detach.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/thread/thread.threads/thread.thread.class/thread.thread.member/detach.pass.cpp?rev=245415&r1=245414&r2=245415&view=diff
==============================================================================
--- libcxx/trunk/test/std/thread/thread.threads/thread.thread.class/thread.thread.member/detach.pass.cpp (original)
+++ libcxx/trunk/test/std/thread/thread.threads/thread.thread.class/thread.thread.member/detach.pass.cpp Wed Aug 19 00:00:36 2015
@@ -16,10 +16,11 @@
// void detach();
#include <thread>
-#include <atomic>
#include <cassert>
-std::atomic_bool done = ATOMIC_VAR_INIT(false);
+#include "test_atomic.h"
+
+AtomicBool done(false);
class G
{
More information about the cfe-commits
mailing list