1289848Sjkim// 2007-01-30 Paolo Carlini <pcarlini@suse.de> 2289848Sjkim 3289848Sjkim// Copyright (C) 2007, 2009 Free Software Foundation, Inc. 4289848Sjkim// 5289848Sjkim// This file is part of the GNU ISO C++ Library. This library is free 6289848Sjkim// software; you can redistribute it and/or modify it under the 7289848Sjkim// terms of the GNU General Public License as published by the 8289848Sjkim// Free Software Foundation; either version 3, or (at your option) 9289848Sjkim// any later version. 10289848Sjkim 11289848Sjkim// This library is distributed in the hope that it will be useful, 12289848Sjkim// but WITHOUT ANY WARRANTY; without even the implied warranty of 13289848Sjkim// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14289848Sjkim// GNU General Public License for more details. 15289848Sjkim 16289848Sjkim// You should have received a copy of the GNU General Public License along 17289848Sjkim// with this library; see the file COPYING3. If not see 18289848Sjkim// <http://www.gnu.org/licenses/>. 19289848Sjkim 20289848Sjkim#include <new> 21289848Sjkim#include <typeinfo> 22289848Sjkim#include <exception> 23289848Sjkim#include <cstring> 24289848Sjkim#include <testsuite_hooks.h> 25289848Sjkim 26289848Sjkim// libstdc++/14493 27289848Sjkimvoid test01() 28289848Sjkim{ 29289848Sjkim bool test __attribute__((unused)) = true; 30289848Sjkim using namespace std; 31289848Sjkim 32289848Sjkim exception e; 33289848Sjkim VERIFY( !strcmp(e.what(), "std::exception") ); 34289848Sjkim} 35289848Sjkim 36289848Sjkimint main() 37289848Sjkim{ 38289848Sjkim test01(); 39289848Sjkim return 0; 40289848Sjkim} 41289848Sjkim