1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: libcpp-no-exceptions
13 // class nested_exception;
15 // void rethrow_nested [[noreturn]] () const;
25 explicit A(int data) : data_(data) {}
27 friend bool operator==(const A& x, const A& y) {return x.data_ == y.data_;}
45 const std::nested_exception e;
46 assert(e.nested_ptr() != nullptr);
61 std::set_terminate(go_quietly);
62 const std::nested_exception e;