xref: /netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/libsupc++/bad_array_new.cc (revision 8feb0f0b7eaff0608f8350bbfa3098827b4bb91b)
1*8feb0f0bSmrg // Copyright (C) 2013-2020 Free Software Foundation, Inc.
21debfc3dSmrg //
31debfc3dSmrg // This file is part of GCC.
41debfc3dSmrg //
51debfc3dSmrg // GCC is free software; you can redistribute it and/or modify
61debfc3dSmrg // it under the terms of the GNU General Public License as published by
71debfc3dSmrg // the Free Software Foundation; either version 3, or (at your option)
81debfc3dSmrg // any later version.
91debfc3dSmrg 
101debfc3dSmrg // GCC is distributed in the hope that it will be useful,
111debfc3dSmrg // but WITHOUT ANY WARRANTY; without even the implied warranty of
121debfc3dSmrg // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
131debfc3dSmrg // GNU General Public License for more details.
141debfc3dSmrg 
151debfc3dSmrg // Under Section 7 of GPL version 3, you are granted additional
161debfc3dSmrg // permissions described in the GCC Runtime Library Exception, version
171debfc3dSmrg // 3.1, as published by the Free Software Foundation.
181debfc3dSmrg 
191debfc3dSmrg // You should have received a copy of the GNU General Public License and
201debfc3dSmrg // a copy of the GCC Runtime Library Exception along with this program;
211debfc3dSmrg // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
221debfc3dSmrg // <http://www.gnu.org/licenses/>.
231debfc3dSmrg 
241debfc3dSmrg #include <new>
251debfc3dSmrg 
261debfc3dSmrg namespace std
271debfc3dSmrg {
281debfc3dSmrg 
~bad_array_new_length()291debfc3dSmrg bad_array_new_length::~bad_array_new_length() _GLIBCXX_USE_NOEXCEPT { }
301debfc3dSmrg 
311debfc3dSmrg const char*
what() const321debfc3dSmrg bad_array_new_length::what() const _GLIBCXX_USE_NOEXCEPT
331debfc3dSmrg { return "std::bad_array_new_length"; }
341debfc3dSmrg 
351debfc3dSmrg } // namespace std
36