xref: /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/libsupc++/bad_array_new.cc (revision b1e838363e3c6fc78a55519254d99869742dd33c)
1*b1e83836Smrg // Copyright (C) 2013-2022 Free Software Foundation, Inc.
24d5abbe8Smrg //
34d5abbe8Smrg // This file is part of GCC.
44d5abbe8Smrg //
54d5abbe8Smrg // GCC is free software; you can redistribute it and/or modify
64d5abbe8Smrg // it under the terms of the GNU General Public License as published by
74d5abbe8Smrg // the Free Software Foundation; either version 3, or (at your option)
84d5abbe8Smrg // any later version.
94d5abbe8Smrg 
104d5abbe8Smrg // GCC is distributed in the hope that it will be useful,
114d5abbe8Smrg // but WITHOUT ANY WARRANTY; without even the implied warranty of
124d5abbe8Smrg // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
134d5abbe8Smrg // GNU General Public License for more details.
144d5abbe8Smrg 
154d5abbe8Smrg // Under Section 7 of GPL version 3, you are granted additional
164d5abbe8Smrg // permissions described in the GCC Runtime Library Exception, version
174d5abbe8Smrg // 3.1, as published by the Free Software Foundation.
184d5abbe8Smrg 
194d5abbe8Smrg // You should have received a copy of the GNU General Public License and
204d5abbe8Smrg // a copy of the GCC Runtime Library Exception along with this program;
214d5abbe8Smrg // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
224d5abbe8Smrg // <http://www.gnu.org/licenses/>.
234d5abbe8Smrg 
244d5abbe8Smrg #include <new>
254d5abbe8Smrg 
264d5abbe8Smrg namespace std
274d5abbe8Smrg {
284d5abbe8Smrg 
~bad_array_new_length()294d5abbe8Smrg bad_array_new_length::~bad_array_new_length() _GLIBCXX_USE_NOEXCEPT { }
304d5abbe8Smrg 
314d5abbe8Smrg const char*
what() const324d5abbe8Smrg bad_array_new_length::what() const _GLIBCXX_USE_NOEXCEPT
334d5abbe8Smrg { return "std::bad_array_new_length"; }
344d5abbe8Smrg 
354d5abbe8Smrg } // namespace std
36