| //===----------------------------------------------------------------------===// |
| // 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 |
| // class nested_exception; |
| // void rethrow_nested [[noreturn]] () const; |
| explicit A(int data) : data_(data) {} |
| friend bool operator==(const A& x, const A& y) {return x.data_ == y.data_;} |
| const std::nested_exception e; |
| assert(e.nested_ptr() != nullptr); |
| std::set_terminate(go_quietly); |
| const std::nested_exception e; |