192108Sphk// { dg-do compile } 292108Sphk// { dg-options "-std=gnu++11" } 392108Sphk 492108Sphk// Copyright (C) 2007-2015 Free Software Foundation, Inc. 592108Sphk// 692108Sphk// This file is part of the GNU ISO C++ Library. This library is free 792108Sphk// software; you can redistribute it and/or modify it under the 892108Sphk// terms of the GNU General Public License as published by the 992108Sphk// Free Software Foundation; either version 3, or (at your option) 1092108Sphk// any later version. 1192108Sphk 1292108Sphk// This library is distributed in the hope that it will be useful, 1392108Sphk// but WITHOUT ANY WARRANTY; without even the implied warranty of 1492108Sphk// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1592108Sphk// GNU General Public License for more details. 1692108Sphk 1792108Sphk// You should have received a copy of the GNU General Public License along 1892108Sphk// with this library; see the file COPYING3. If not see 1992108Sphk// <http://www.gnu.org/licenses/>. 2092108Sphk 2192108Sphk#include <exception> 2292108Sphk 2392108Sphknamespace std { 2492108Sphk class exception; 2592108Sphk class bad_exception; 2692108Sphk 2792108Sphk typedef void (*unexpected_handler)(); 2892108Sphk unexpected_handler set_unexpected(unexpected_handler f ) throw(); 2992108Sphk unexpected_handler get_unexpected() noexcept; 3092108Sphk void unexpected(); 3192108Sphk 3292108Sphk typedef void (*terminate_handler)(); 3392108Sphk terminate_handler set_terminate(terminate_handler f ) throw(); 3492108Sphk terminate_handler get_terminate() noexcept; 3592108Sphk void terminate() throw(); 3692108Sphk 3792108Sphk bool uncaught_exception() throw(); 3892108Sphk} 3992108Sphk