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 <new> 10#include <exception> 11 12namespace std 13{ 14 15// exception 16 17exception::~exception() noexcept 18{ 19} 20 21const char* exception::what() const noexcept 22{ 23 return "std::exception"; 24} 25 26// bad_exception 27 28bad_exception::~bad_exception() noexcept 29{ 30} 31 32const char* bad_exception::what() const noexcept 33{ 34 return "std::bad_exception"; 35} 36 37 38// bad_alloc 39 40bad_alloc::bad_alloc() noexcept 41{ 42} 43 44bad_alloc::~bad_alloc() noexcept 45{ 46} 47 48const char* 49bad_alloc::what() const noexcept 50{ 51 return "std::bad_alloc"; 52} 53 54// bad_array_new_length 55 56bad_array_new_length::bad_array_new_length() noexcept 57{ 58} 59 60bad_array_new_length::~bad_array_new_length() noexcept 61{ 62} 63 64const char* 65bad_array_new_length::what() const noexcept 66{ 67 return "bad_array_new_length"; 68} 69 70} // std 71