| //===----------------------------------------------------------------------===// |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| // See https://llvm.org/LICENSE.txt for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| //===----------------------------------------------------------------------===// |
| // 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)); |