]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/libcxx/src/support/runtime/exception_libcxxrt.ipp
MFC r355940:
[FreeBSD/FreeBSD.git] / contrib / llvm-project / libcxx / src / support / runtime / exception_libcxxrt.ipp
1 // -*- C++ -*-
2 //===----------------------------------------------------------------------===//
3 //
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LIBCXXRT
11 #error this header may only be used when targeting libcxxrt
12 #endif
13
14 namespace std {
15
16 bad_exception::~bad_exception() _NOEXCEPT
17 {
18 }
19
20 const char* bad_exception::what() const _NOEXCEPT
21 {
22   return "std::bad_exception";
23 }
24
25 } // namespace std