From 5a83710e371fe68a06e6e3876c6a2c8b820a8976 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sat, 20 Dec 2014 01:40:03 +0000 Subject: Move test into test/std subdirectory. llvm-svn: 224658 --- .../util.smartptr.shared.obs/arrow.pass.cpp | 29 -------------------- .../util.smartptr.shared.obs/dereference.pass.cpp | 25 ----------------- .../util.smartptr.shared.obs/op_bool.pass.cpp | 29 -------------------- .../owner_before_shared_ptr.pass.cpp | 28 ------------------- .../owner_before_weak_ptr.pass.cpp | 31 ---------------------- .../util.smartptr.shared.obs/unique.pass.cpp | 28 ------------------- 6 files changed, 170 deletions(-) delete mode 100644 libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/arrow.pass.cpp delete mode 100644 libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/dereference.pass.cpp delete mode 100644 libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/op_bool.pass.cpp delete mode 100644 libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/owner_before_shared_ptr.pass.cpp delete mode 100644 libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/owner_before_weak_ptr.pass.cpp delete mode 100644 libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/unique.pass.cpp (limited to 'libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs') 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. -// -//===----------------------------------------------------------------------===// - -// - -// shared_ptr - -// T* operator->() const; - -#include -#include -#include - -int main() -{ - const std::shared_ptr > p(new std::pair(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. -// -//===----------------------------------------------------------------------===// - -// - -// shared_ptr - -// T& operator*() const; - -#include -#include - -int main() -{ - const std::shared_ptr 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. -// -//===----------------------------------------------------------------------===// - -// - -// shared_ptr - -// explicit operator bool() const; - -#include -#include - -int main() -{ - { - const std::shared_ptr p(new int(32)); - assert(p); - } - { - const std::shared_ptr 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. -// -//===----------------------------------------------------------------------===// - -// - -// shared_ptr - -// template bool owner_before(shared_ptr const& b) const; - -#include -#include - -int main() -{ - const std::shared_ptr p1(new int); - const std::shared_ptr p2 = p1; - const std::shared_ptr 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. -// -//===----------------------------------------------------------------------===// - -// - -// shared_ptr - -// template bool owner_before(weak_ptr const& b) const; - -#include -#include - -int main() -{ - const std::shared_ptr p1(new int); - const std::shared_ptr p2 = p1; - const std::shared_ptr p3(new int); - const std::weak_ptr w1(p1); - const std::weak_ptr w2(p2); - const std::weak_ptr 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. -// -//===----------------------------------------------------------------------===// - -// - -// shared_ptr - -// bool unique() const; - -#include -#include - -int main() -{ - const std::shared_ptr p(new int(32)); - assert(p.unique()); - { - std::shared_ptr p2 = p; - assert(!p.unique()); - } - assert(p.unique()); -} -- cgit v1.2.3