| //===----------------------------------------------------------------------===// |
| // 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-no-exceptions |
| // UNSUPPORTED: sanitizer-new-delete |
| // template<class Y> explicit shared_ptr(Y* p); |
| globalMemCounter.throw_after = 0; |
| std::shared_ptr<A> p(ptr); |
| assert(globalMemCounter.checkOutstandingNewEq(0)); |