1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 #include <__verbose_abort>
12 namespace std
{ // purposefully not versioned
15 const nothrow_t nothrow
{};
20 void __throw_bad_alloc() {
21 # ifndef _LIBCPP_HAS_NO_EXCEPTIONS
24 _LIBCPP_VERBOSE_ABORT("bad_alloc was thrown in -fno-exceptions mode");