1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #include <typeinfo> 10 11 namespace std 12 { 13 14 // type_info 15 ~type_info()16type_info::~type_info() 17 { 18 } 19 20 // bad_cast 21 bad_cast()22bad_cast::bad_cast() noexcept 23 { 24 } 25 ~bad_cast()26bad_cast::~bad_cast() noexcept 27 { 28 } 29 30 const char* what() const31bad_cast::what() const noexcept 32 { 33 return "std::bad_cast"; 34 } 35 36 // bad_typeid 37 bad_typeid()38bad_typeid::bad_typeid() noexcept 39 { 40 } 41 ~bad_typeid()42bad_typeid::~bad_typeid() noexcept 43 { 44 } 45 46 const char* what() const47bad_typeid::what() const noexcept 48 { 49 return "std::bad_typeid"; 50 } 51 52 } // std 53