| //===----------------------------------------------------------------------===// |
| // 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 |
| //===----------------------------------------------------------------------===// |
| // : public std::exception |
| static_assert((std::is_base_of<std::exception, std::bad_weak_ptr>::value), ""); |
| std::bad_weak_ptr e2 = e; |
| assert(std::strcmp(e.what(), "bad_weak_ptr") == 0); |