summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/thread/thread.threads/thread.thread.class
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2015-07-28 07:31:50 +0000
committerEric Fiselier <eric@efcs.ca>2015-07-28 07:31:50 +0000
commitabd52cad847e56575e6692e7f43a76e510e67b7e (patch)
treefecc8aa7a2c19766b1110f814b7254f772dcd664 /libcxx/test/std/thread/thread.threads/thread.thread.class
parent47a7b95b1da244db1ae9b6217c17917ccca4701a (diff)
downloadbcm5719-llvm-abd52cad847e56575e6692e7f43a76e510e67b7e.tar.gz
bcm5719-llvm-abd52cad847e56575e6692e7f43a76e510e67b7e.zip
Fix a handful of tests that fail in C++03
llvm-svn: 243392
Diffstat (limited to 'libcxx/test/std/thread/thread.threads/thread.thread.class')
-rw-r--r--libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.assign/move2.pass.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.assign/move2.pass.cpp b/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.assign/move2.pass.cpp
index 7198d226960..db2a58844c2 100644
--- a/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.assign/move2.pass.cpp
+++ b/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.assign/move2.pass.cpp
@@ -8,6 +8,7 @@
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: libcpp-has-no-threads
+// UNSUPPORTED: c++98, c++03
// NOTE: std::terminate is called so the destructors are not invoked and the
// memory is not freed. This will cause ASAN to fail.
@@ -38,12 +39,7 @@ public:
G(const G& g) : alive_(g.alive_) {++n_alive;}
~G() {alive_ = 0; --n_alive;}
- void operator()()
- {
- assert(alive_ == 1);
- assert(n_alive >= 1);
- op_run = true;
- }
+
void operator()(int i, double j)
{
@@ -60,7 +56,7 @@ bool G::op_run = false;
void f1()
{
- std::exit(0);
+ std::_Exit(0);
}
int main()
OpenPOWER on IntegriCloud