Commit debac9f4 by Paolo Carlini Committed by Paolo Carlini

9661-1.cc: Include <cstdlib>.

2007-03-02  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/27_io/objects/wchar_t/9661-1.cc: Include <cstdlib>.
	* testsuite/27_io/objects/wchar_t/7.cc: Likewise.
	* testsuite/27_io/objects/char/9661-1.cc: Likewise.
	* testsuite/27_io/objects/char/7.cc: Likewise.
	* testsuite/27_io/basic_istream/ignore/wchar_t/2.cc: Likewise.
	* testsuite/27_io/basic_istream/ignore/char/2.cc: Likewise.
	* testsuite/27_io/basic_istream/getline/wchar_t/5.cc: Likewise.
	* testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
	* testsuite/27_io/basic_istream/extractors_arithmetic/char/
	11.cc: Likewise.
	* testsuite/27_io/basic_istream/extractors_character/wchar_t/
	4.cc: Likewise.
	* testsuite/27_io/basic_istream/extractors_character/char/
	4.cc: Likewise.
	* testsuite/27_io/basic_ostream/seekp/wchar_t/
	2346-fstream.cc: Likewise.
	* testsuite/27_io/basic_ostream/seekp/char/
	2346-fstream.cc: Likewise.
	* testsuite/27_io/basic_filebuf/seekoff/char/26777.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/close/char/4879.cc: Likewise.
	* testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
	* testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
	* testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/
	wchar_t/10.cc: Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/
	wchar_t/11.cc: Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/
	char/10.cc: Likewise.
	* testsuite/21_strings/basic_string/inserters_extractors/
	char/11.cc: Likewise.
	* testsuite/ext/pb_ds/example/trie_dna.cc: Likewise.
	* testsuite/ext/new_allocator/deallocate_global.cc: Likewise.
	* testsuite/ext/new_allocator/deallocate_local.cc: Likewise.
	* testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Likewise.
	* testsuite/performance/27_io/ifstream_getline.cc: Likewise.
	* testsuite/22_locale/locale/cons/4.cc: Likewise.
	* testsuite/22_locale/locale/cons/5.cc: Likewise.
	* testsuite/tr1/2_general_utilities/shared_ptr/thread/
	mutex_weaktoshared.cc: Likewise.
	* testsuite/tr1/2_general_utilities/shared_ptr/thread/
	default_weaktoshared.cc: Likewise.
	* testsuite/thread/pthread5.cc: Likewise.
	* testsuite/thread/pthread1.cc: Likewise.
	* testsuite/23_containers/deque/cons/assign/1.cc: Likewise.

From-SVN: r122482
parent e0759b73
2007-03-02 Paolo Carlini <pcarlini@suse.de> 2007-03-02 Paolo Carlini <pcarlini@suse.de>
* testsuite/27_io/objects/wchar_t/9661-1.cc: Include <cstdlib>.
* testsuite/27_io/objects/wchar_t/7.cc: Likewise.
* testsuite/27_io/objects/char/9661-1.cc: Likewise.
* testsuite/27_io/objects/char/7.cc: Likewise.
* testsuite/27_io/basic_istream/ignore/wchar_t/2.cc: Likewise.
* testsuite/27_io/basic_istream/ignore/char/2.cc: Likewise.
* testsuite/27_io/basic_istream/getline/wchar_t/5.cc: Likewise.
* testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/
11.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_character/wchar_t/
4.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_character/char/
4.cc: Likewise.
* testsuite/27_io/basic_ostream/seekp/wchar_t/
2346-fstream.cc: Likewise.
* testsuite/27_io/basic_ostream/seekp/char/
2346-fstream.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekoff/char/26777.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/close/char/4879.cc: Likewise.
* testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
* testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
* testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Likewise.
* testsuite/21_strings/basic_string/inserters_extractors/
wchar_t/10.cc: Likewise.
* testsuite/21_strings/basic_string/inserters_extractors/
wchar_t/11.cc: Likewise.
* testsuite/21_strings/basic_string/inserters_extractors/
char/10.cc: Likewise.
* testsuite/21_strings/basic_string/inserters_extractors/
char/11.cc: Likewise.
* testsuite/ext/pb_ds/example/trie_dna.cc: Likewise.
* testsuite/ext/new_allocator/deallocate_global.cc: Likewise.
* testsuite/ext/new_allocator/deallocate_local.cc: Likewise.
* testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Likewise.
* testsuite/performance/27_io/ifstream_getline.cc: Likewise.
* testsuite/22_locale/locale/cons/4.cc: Likewise.
* testsuite/22_locale/locale/cons/5.cc: Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/thread/
mutex_weaktoshared.cc: Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/thread/
default_weaktoshared.cc: Likewise.
* testsuite/thread/pthread5.cc: Likewise.
* testsuite/thread/pthread1.cc: Likewise.
* testsuite/23_containers/deque/cons/assign/1.cc: Likewise.
2007-03-02 Paolo Carlini <pcarlini@suse.de>
* testsuite/thread/pthread1.cc: Include <pthread.h>. * testsuite/thread/pthread1.cc: Include <pthread.h>.
* testsuite/thread/pthread2.cc: Likewise. * testsuite/thread/pthread2.cc: Likewise.
* testsuite/thread/pthread3.cc: Likewise. * testsuite/thread/pthread3.cc: Likewise.
......
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <istream> #include <istream>
#include <string> #include <string>
#include <fstream> #include <fstream>
#include <cstdlib>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using namespace std; using namespace std;
......
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <istream> #include <istream>
#include <string> #include <string>
#include <fstream> #include <fstream>
#include <cstdlib>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using namespace std; using namespace std;
......
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <istream> #include <istream>
#include <string> #include <string>
#include <fstream> #include <fstream>
#include <cstdlib>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using namespace std; using namespace std;
......
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <istream> #include <istream>
#include <string> #include <string>
#include <fstream> #include <fstream>
#include <cstdlib>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using namespace std; using namespace std;
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
// 22.1.1.2 locale constructors and destructors [lib.locale.cons] // 22.1.1.2 locale constructors and destructors [lib.locale.cons]
#include <cwchar> // for mbstate_t #include <cwchar> // for mbstate_t
#include <cstdlib>
#include <locale> #include <locale>
#include <stdexcept> #include <stdexcept>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
// 2000-09-13 Benjamin Kosnik <bkoz@redhat.com> // 2000-09-13 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2000, 2001, 2002, 2003, 2005 Free Software Foundation // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
// Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -23,6 +24,7 @@ ...@@ -23,6 +24,7 @@
// 22.1.1.2 locale constructors and destructors [lib.locale.cons] // 22.1.1.2 locale constructors and destructors [lib.locale.cons]
#include <cwchar> // for mbstate_t #include <cwchar> // for mbstate_t
#include <cstdlib>
#include <locale> #include <locale>
#include <stdexcept> #include <stdexcept>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
......
// 2005-12-12 Paolo Carlini <pcarlini@suse.de> // 2005-12-12 Paolo Carlini <pcarlini@suse.de>
// //
// Copyright (C) 2005, 2006 Free Software Foundation, Inc. // Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
// 23.2.1.1 deque constructors, copy, and assignment // 23.2.1.1 deque constructors, copy, and assignment
#include <deque> #include <deque>
#include <cstdlib>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
void test01() void test01()
......
// { dg-require-fork "" } // { dg-require-fork "" }
// { dg-require-mkfifo "" } // { dg-require-mkfifo "" }
// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
// Free Software Foundation, Inc. // Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
#include <cstdlib>
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
#include <fcntl.h> #include <fcntl.h>
......
// { dg-require-fork "" } // { dg-require-fork "" }
// { dg-require-mkfifo "" } // { dg-require-mkfifo "" }
// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
// Free Software Foundation, Inc. // Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
// the non-portable functionality in the libstdc++-v3 IO library // the non-portable functionality in the libstdc++-v3 IO library
#include <fstream> #include <fstream>
#include <cstdlib>
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
#include <fcntl.h> #include <fcntl.h>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// { dg-require-fork "" } // { dg-require-fork "" }
// { dg-require-mkfifo "" } // { dg-require-mkfifo "" }
// Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <fstream> #include <fstream>
#include <locale> #include <locale>
#include <cstdlib>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// 2004-01-11 Petur Runolfsson <peturr02@ru.is> // 2004-01-11 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <fstream> #include <fstream>
#include <locale> #include <locale>
#include <cstdlib>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// 2004-01-11 Petur Runolfsson <peturr02@ru.is> // 2004-01-11 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <fstream> #include <fstream>
#include <locale> #include <locale>
#include <cstdlib>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// 2004-04-16 Petur Runolfsson <peturr02@ru.is> // 2004-04-16 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. // Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <fstream> #include <fstream>
#include <locale> #include <locale>
#include <cstdlib>
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
#include <fcntl.h> #include <fcntl.h>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// 2006-03-22 Paolo Carlini <pcarlini@suse.de> // 2006-03-22 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2006 Free Software Foundation, Inc. // Copyright (C) 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <fstream> #include <fstream>
#include <sstream> #include <sstream>
#include <cstdlib>
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
#include <fcntl.h> #include <fcntl.h>
......
// { dg-require-fork "" } // { dg-require-fork "" }
// { dg-require-mkfifo "" } // { dg-require-mkfifo "" }
// Copyright (C) 2003 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fstream> #include <fstream>
#include <cstdlib>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
// libstdc++/9533 // libstdc++/9533
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com> // 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
// Free Software Foundation, Inc. // Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
// 27.8.1.4 Overridden virtual functions // 27.8.1.4 Overridden virtual functions
#include <fstream> #include <fstream>
#include <cstdlib>
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
#include <fcntl.h> #include <fcntl.h>
......
// 1999-04-12 bkoz // 1999-04-12 bkoz
// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc. // Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
// Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -23,6 +24,7 @@ ...@@ -23,6 +24,7 @@
#include <istream> #include <istream>
#include <sstream> #include <sstream>
#include <locale> #include <locale>
#include <cstdlib>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
// In the presence of no fmtflags, the input operator should behave // In the presence of no fmtflags, the input operator should behave
......
// 2005-07-22 Paolo Carlini <pcarlini@suse.de> // 2005-07-22 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2005 Free Software Foundation // Copyright (C) 2005, 2006, 2007 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <istream> #include <istream>
#include <string> #include <string>
#include <fstream> #include <fstream>
#include <cstdlib>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using namespace std; using namespace std;
......
// 2005-07-22 Paolo Carlini <pcarlini@suse.de> // 2005-07-22 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2005 Free Software Foundation // Copyright (C) 2005, 2006, 2007 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <istream> #include <istream>
#include <string> #include <string>
#include <fstream> #include <fstream>
#include <cstdlib>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using namespace std; using namespace std;
......
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <istream> #include <istream>
#include <string> #include <string>
#include <fstream> #include <fstream>
#include <cstdlib>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using namespace std; using namespace std;
......
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <istream> #include <istream>
#include <string> #include <string>
#include <fstream> #include <fstream>
#include <cstdlib>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using namespace std; using namespace std;
......
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <string> #include <string>
#include <fstream> #include <fstream>
#include <limits> #include <limits>
#include <cstdlib>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using namespace std; using namespace std;
......
// Copyright (C) 2004 Free Software Foundation // Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <string> #include <string>
#include <fstream> #include <fstream>
#include <limits> #include <limits>
#include <cstdlib>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
using namespace std; using namespace std;
......
// 2000-06-29 bkoz // 2000-06-29 bkoz
// Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
// Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -25,6 +26,7 @@ ...@@ -25,6 +26,7 @@
#include <ostream> #include <ostream>
#include <istream> #include <istream>
#include <fstream> #include <fstream>
#include <cstdlib>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
const char* s = " lootpack, peanut butter wolf, rob swift, madlib, quasimoto"; const char* s = " lootpack, peanut butter wolf, rob swift, madlib, quasimoto";
......
// Copyright (C) 2005 Free Software Foundation // Copyright (C) 2005, 2006, 2007 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <ostream> #include <ostream>
#include <istream> #include <istream>
#include <fstream> #include <fstream>
#include <cstdlib>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
const wchar_t* s = L" lootpack, peanut butter wolf, rob swift, madlib, quasimoto"; const wchar_t* s = L" lootpack, peanut butter wolf, rob swift, madlib, quasimoto";
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// 2003-04-26 Petur Runolfsson <peturr02@ru.is> // 2003-04-26 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
#include <cstdlib>
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
#include <fcntl.h> #include <fcntl.h>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// 2003-04-30 Petur Runolfsson <peturr02@ru.is> // 2003-04-30 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <cstdio> #include <cstdio>
#include <cstdlib>
#include <iostream> #include <iostream>
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// 2003-05-01 Petur Runolfsson <peturr02@ru.is> // 2003-05-01 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
#include <cstdlib>
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
#include <fcntl.h> #include <fcntl.h>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// 2003-04-30 Petur Runolfsson <peturr02@ru.is> // 2003-04-30 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <cstdio> #include <cstdio>
#include <cstdlib>
#include <iostream> #include <iostream>
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
......
// //
// Copyright (C) 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <string> #include <string>
#include <stdexcept> #include <stdexcept>
#include <cstdlib>
#include <ext/new_allocator.h> #include <ext/new_allocator.h>
static size_t count; static size_t count;
...@@ -39,8 +40,8 @@ static count_check check; ...@@ -39,8 +40,8 @@ static count_check check;
void* operator new(size_t size) throw(std::bad_alloc) void* operator new(size_t size) throw(std::bad_alloc)
{ {
printf("operator new is called \n"); std::printf("operator new is called \n");
void* p = malloc(size); void* p = std::malloc(size);
if (p == NULL) if (p == NULL)
throw std::bad_alloc(); throw std::bad_alloc();
count++; count++;
...@@ -49,7 +50,7 @@ void* operator new(size_t size) throw(std::bad_alloc) ...@@ -49,7 +50,7 @@ void* operator new(size_t size) throw(std::bad_alloc)
void operator delete(void* p) throw() void operator delete(void* p) throw()
{ {
printf("operator delete is called \n"); std::printf("operator delete is called \n");
if (p == NULL) if (p == NULL)
return; return;
count--; count--;
......
// //
// Copyright (C) 2004, 2005 Free Software Foundation, Inc. // Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <string> #include <string>
#include <stdexcept> #include <stdexcept>
#include <cstdlib>
#include <ext/new_allocator.h> #include <ext/new_allocator.h>
static size_t count; static size_t count;
...@@ -39,8 +40,8 @@ static count_check check; ...@@ -39,8 +40,8 @@ static count_check check;
void* operator new(size_t size) throw(std::bad_alloc) void* operator new(size_t size) throw(std::bad_alloc)
{ {
printf("operator new is called \n"); std::printf("operator new is called \n");
void* p = malloc(size); void* p = std::malloc(size);
if (p == NULL) if (p == NULL)
throw std::bad_alloc(); throw std::bad_alloc();
count++; count++;
...@@ -49,7 +50,7 @@ void* operator new(size_t size) throw(std::bad_alloc) ...@@ -49,7 +50,7 @@ void* operator new(size_t size) throw(std::bad_alloc)
void operator delete(void* p) throw() void operator delete(void* p) throw()
{ {
printf("operator delete is called \n"); std::printf("operator delete is called \n");
if (p == NULL) if (p == NULL)
return; return;
count--; count--;
......
// -*- C++ -*- // -*- C++ -*-
// Copyright (C) 2005, 2006 Free Software Foundation, Inc. // Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the terms // software; you can redistribute it and/or modify it under the terms
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
#include <cassert> #include <cassert>
#include <iostream> #include <iostream>
#include <cstdlib>
#include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/trie_policy.hpp> #include <ext/pb_ds/trie_policy.hpp>
...@@ -102,7 +103,7 @@ public: ...@@ -102,7 +103,7 @@ public:
case 'T': case 'T':
return 3; return 3;
default: default:
abort(); std::abort();
}; };
} }
}; };
......
// Copyright (C) 2004 Free Software Foundation, Inc. // Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
// the GNU General Public License. // the GNU General Public License.
#include <cstdio> #include <cstdio>
#include <cstdlib>
#include <fstream> #include <fstream>
#include <testsuite_performance.h> #include <testsuite_performance.h>
......
// Copyright (C) 2003 Free Software Foundation, Inc. // Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
// the GNU General Public License. // the GNU General Public License.
#include <fstream> #include <fstream>
#include <cstdlib>
#include <testsuite_performance.h> #include <testsuite_performance.h>
// libstdc++/5001 (100,000 line input file) // libstdc++/5001 (100,000 line input file)
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
// if the STL threading support is fubar'd). // if the STL threading support is fubar'd).
#include <list> #include <list>
#include <cstdlib>
#include <pthread.h> #include <pthread.h>
using namespace std; using namespace std;
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include <vector> #include <vector>
#include <list> #include <list>
#include <string> #include <string>
#include <cstdlib>
#include <pthread.h> #include <pthread.h>
#ifdef _GLIBCXX_HAVE_UNISTD_H #ifdef _GLIBCXX_HAVE_UNISTD_H
......
// Copyright (C) 2006 Free Software Foundation // Copyright (C) 2006, 2007 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <vector> #include <vector>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <iostream> #include <iostream>
#include <cstdlib>
#include <pthread.h> #include <pthread.h>
...@@ -169,14 +170,14 @@ test01() ...@@ -169,14 +170,14 @@ test01()
{ {
if (pthread_create(&threads[worker], &tattr, if (pthread_create(&threads[worker], &tattr,
thread_hammer, reinterpret_cast<void*>(&weak_pool[worker]))) thread_hammer, reinterpret_cast<void*>(&weak_pool[worker])))
abort(); std::abort();
} }
// Wait for threads to complete, then check integrity of reference. // Wait for threads to complete, then check integrity of reference.
void* status; void* status;
for (unsigned int worker = 0; worker < HAMMER_MAX_THREADS; worker++) for (unsigned int worker = 0; worker < HAMMER_MAX_THREADS; worker++)
{ {
if (pthread_join(threads[worker], &status)) if (pthread_join(threads[worker], &status))
abort(); std::abort();
} }
obj_pool.clear(); obj_pool.clear();
......
// Copyright (C) 2006 Free Software Foundation // Copyright (C) 2006, 2007 Free Software Foundation
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <vector> #include <vector>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <iostream> #include <iostream>
#include <cstdlib>
#include <pthread.h> #include <pthread.h>
...@@ -171,14 +172,14 @@ test01() ...@@ -171,14 +172,14 @@ test01()
{ {
if (pthread_create(&threads[worker], &tattr, if (pthread_create(&threads[worker], &tattr,
thread_hammer, reinterpret_cast<void*>(&weak_pool[worker]))) thread_hammer, reinterpret_cast<void*>(&weak_pool[worker])))
abort(); std::abort();
} }
// Wait for threads to complete, then check integrity of reference. // Wait for threads to complete, then check integrity of reference.
void* status; void* status;
for (unsigned int worker = 0; worker < HAMMER_MAX_THREADS; worker++) for (unsigned int worker = 0; worker < HAMMER_MAX_THREADS; worker++)
{ {
if (pthread_join(threads[worker], &status)) if (pthread_join(threads[worker], &status))
abort(); std::abort();
} }
obj_pool.clear(); obj_pool.clear();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment