Use TestAtomic instead of std::atomic so the test can run in C++03

llvm-svn: 245415
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 9c039962cac7f05af8ea16fb1bdedf1003b048b7
diff --git a/test/std/thread/thread.threads/thread.thread.class/thread.thread.member/detach.pass.cpp b/test/std/thread/thread.threads/thread.thread.class/thread.thread.member/detach.pass.cpp
index f4a4d1f..3f59b19 100644
--- a/test/std/thread/thread.threads/thread.thread.class/thread.thread.member/detach.pass.cpp
+++ b/test/std/thread/thread.threads/thread.thread.class/thread.thread.member/detach.pass.cpp
@@ -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
 {