diff options
Diffstat (limited to 'libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared.atomic/atomic_load.pass.cpp')
| -rw-r--r-- | libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared.atomic/atomic_load.pass.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared.atomic/atomic_load.pass.cpp b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared.atomic/atomic_load.pass.cpp deleted file mode 100644 index 566e95adec8..00000000000 --- a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared.atomic/atomic_load.pass.cpp +++ /dev/null @@ -1,37 +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. -// -//===----------------------------------------------------------------------===// -// -// UNSUPPORTED: libcpp-has-no-threads -// -// This test uses new symbols that were not defined in the libc++ shipped on -// darwin11 and darwin12: -// XFAIL: with_system_lib=x86_64-apple-darwin11 -// XFAIL: with_system_lib=x86_64-apple-darwin12 - -// <memory> - -// shared_ptr - -// template <class T> -// shared_ptr<T> -// atomic_load(const shared_ptr<T>* p) - -#include <memory> -#include <cassert> - -int main() -{ -#if __has_feature(cxx_atomic) - { - std::shared_ptr<int> p(new int(3)); - std::shared_ptr<int> q = std::atomic_load(&p); - assert(*q == *p); - } -#endif -} |

