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