summaryrefslogtreecommitdiffstats
path: root/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2014-12-20 01:40:03 +0000
committerEric Fiselier <eric@efcs.ca>2014-12-20 01:40:03 +0000
commit5a83710e371fe68a06e6e3876c6a2c8b820a8976 (patch)
treeafde4c82ad6704681781c5cd49baa3fbd05c85db /libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs
parentf11e8eab527fba316c64112f6e05de1a79693a3e (diff)
downloadbcm5719-llvm-5a83710e371fe68a06e6e3876c6a2c8b820a8976.tar.gz
bcm5719-llvm-5a83710e371fe68a06e6e3876c6a2c8b820a8976.zip
Move test into test/std subdirectory.
llvm-svn: 224658
Diffstat (limited to 'libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs')
-rw-r--r--libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/arrow.pass.cpp29
-rw-r--r--libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/dereference.pass.cpp25
-rw-r--r--libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/op_bool.pass.cpp29
-rw-r--r--libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/owner_before_shared_ptr.pass.cpp28
-rw-r--r--libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/owner_before_weak_ptr.pass.cpp31
-rw-r--r--libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/unique.pass.cpp28
6 files changed, 0 insertions, 170 deletions
diff --git a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/arrow.pass.cpp b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/arrow.pass.cpp
deleted file mode 100644
index 00281687521..00000000000
--- a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/arrow.pass.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <memory>
-
-// shared_ptr
-
-// T* operator->() const;
-
-#include <memory>
-#include <utility>
-#include <cassert>
-
-int main()
-{
- const std::shared_ptr<std::pair<int, int> > p(new std::pair<int, int>(3, 4));
- assert(p->first == 3);
- assert(p->second == 4);
- p->first = 5;
- p->second = 6;
- assert(p->first == 5);
- assert(p->second == 6);
-}
diff --git a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/dereference.pass.cpp b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/dereference.pass.cpp
deleted file mode 100644
index 378cd0514ca..00000000000
--- a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/dereference.pass.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <memory>
-
-// shared_ptr
-
-// T& operator*() const;
-
-#include <memory>
-#include <cassert>
-
-int main()
-{
- const std::shared_ptr<int> p(new int(32));
- assert(*p == 32);
- *p = 3;
- assert(*p == 3);
-}
diff --git a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/op_bool.pass.cpp b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/op_bool.pass.cpp
deleted file mode 100644
index 1b79d497005..00000000000
--- a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/op_bool.pass.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <memory>
-
-// shared_ptr
-
-// explicit operator bool() const;
-
-#include <memory>
-#include <cassert>
-
-int main()
-{
- {
- const std::shared_ptr<int> p(new int(32));
- assert(p);
- }
- {
- const std::shared_ptr<int> p;
- assert(!p);
- }
-}
diff --git a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/owner_before_shared_ptr.pass.cpp b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/owner_before_shared_ptr.pass.cpp
deleted file mode 100644
index 3acd2f8c6f2..00000000000
--- a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/owner_before_shared_ptr.pass.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <memory>
-
-// shared_ptr
-
-// template <class U> bool owner_before(shared_ptr<U> const& b) const;
-
-#include <memory>
-#include <cassert>
-
-int main()
-{
- const std::shared_ptr<int> p1(new int);
- const std::shared_ptr<int> p2 = p1;
- const std::shared_ptr<int> p3(new int);
- assert(!p1.owner_before(p2));
- assert(!p2.owner_before(p1));
- assert(p1.owner_before(p3) || p3.owner_before(p1));
- assert(p3.owner_before(p1) == p3.owner_before(p2));
-}
diff --git a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/owner_before_weak_ptr.pass.cpp b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/owner_before_weak_ptr.pass.cpp
deleted file mode 100644
index 33447ba7da0..00000000000
--- a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/owner_before_weak_ptr.pass.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <memory>
-
-// shared_ptr
-
-// template <class U> bool owner_before(weak_ptr<U> const& b) const;
-
-#include <memory>
-#include <cassert>
-
-int main()
-{
- const std::shared_ptr<int> p1(new int);
- const std::shared_ptr<int> p2 = p1;
- const std::shared_ptr<int> p3(new int);
- const std::weak_ptr<int> w1(p1);
- const std::weak_ptr<int> w2(p2);
- const std::weak_ptr<int> w3(p3);
- assert(!p1.owner_before(w2));
- assert(!p2.owner_before(w1));
- assert(p1.owner_before(w3) || p3.owner_before(w1));
- assert(p3.owner_before(w1) == p3.owner_before(w2));
-}
diff --git a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/unique.pass.cpp b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/unique.pass.cpp
deleted file mode 100644
index 50ff692f9d4..00000000000
--- a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/unique.pass.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// <memory>
-
-// shared_ptr
-
-// bool unique() const;
-
-#include <memory>
-#include <cassert>
-
-int main()
-{
- const std::shared_ptr<int> p(new int(32));
- assert(p.unique());
- {
- std::shared_ptr<int> p2 = p;
- assert(!p.unique());
- }
- assert(p.unique());
-}
OpenPOWER on IntegriCloud