//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // test bad_exception #include #include #include int main() { static_assert((std::is_base_of::value), "std::is_base_of::value"); static_assert(std::is_polymorphic::value, "std::is_polymorphic::value"); std::bad_exception b; std::bad_exception b2 = b; b2 = b; const char* w = b2.what(); assert(w); }