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
This commit is contained in:
parent
e0759b7392
commit
debac9f40d
@ -1,3 +1,55 @@
|
||||
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>.
|
||||
|
@ -1,4 +1,4 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -21,6 +21,7 @@
|
||||
#include <istream>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <cstdlib>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -21,6 +21,7 @@
|
||||
#include <istream>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <cstdlib>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -21,6 +21,7 @@
|
||||
#include <istream>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <cstdlib>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -21,6 +21,7 @@
|
||||
#include <istream>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <cstdlib>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
|
@ -23,6 +23,7 @@
|
||||
// 22.1.1.2 locale constructors and destructors [lib.locale.cons]
|
||||
|
||||
#include <cwchar> // for mbstate_t
|
||||
#include <cstdlib>
|
||||
#include <locale>
|
||||
#include <stdexcept>
|
||||
#include <testsuite_hooks.h>
|
||||
|
@ -2,7 +2,8 @@
|
||||
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -23,6 +24,7 @@
|
||||
// 22.1.1.2 locale constructors and destructors [lib.locale.cons]
|
||||
|
||||
#include <cwchar> // for mbstate_t
|
||||
#include <cstdlib>
|
||||
#include <locale>
|
||||
#include <stdexcept>
|
||||
#include <testsuite_hooks.h>
|
||||
|
@ -1,6 +1,6 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -21,6 +21,7 @@
|
||||
// 23.2.1.1 deque constructors, copy, and assignment
|
||||
|
||||
#include <deque>
|
||||
#include <cstdlib>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
void test01()
|
||||
|
@ -1,7 +1,7 @@
|
||||
// { dg-require-fork "" }
|
||||
// { dg-require-mkfifo "" }
|
||||
|
||||
// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006
|
||||
// Copyright (C) 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
|
||||
@ -29,6 +29,7 @@
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -1,7 +1,7 @@
|
||||
// { dg-require-fork "" }
|
||||
// { dg-require-mkfifo "" }
|
||||
|
||||
// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006
|
||||
// Copyright (C) 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
|
||||
@ -28,6 +28,7 @@
|
||||
// the non-portable functionality in the libstdc++-v3 IO library
|
||||
|
||||
#include <fstream>
|
||||
#include <cstdlib>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -2,7 +2,7 @@
|
||||
// { dg-require-fork "" }
|
||||
// { 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -24,6 +24,7 @@
|
||||
|
||||
#include <fstream>
|
||||
#include <locale>
|
||||
#include <cstdlib>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -26,6 +26,7 @@
|
||||
|
||||
#include <fstream>
|
||||
#include <locale>
|
||||
#include <cstdlib>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -26,6 +26,7 @@
|
||||
|
||||
#include <fstream>
|
||||
#include <locale>
|
||||
#include <cstdlib>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -24,6 +24,7 @@
|
||||
|
||||
#include <fstream>
|
||||
#include <locale>
|
||||
#include <cstdlib>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -27,6 +27,7 @@
|
||||
#include <testsuite_hooks.h>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <cstdlib>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -1,7 +1,7 @@
|
||||
// { dg-require-fork "" }
|
||||
// { 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -27,6 +27,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fstream>
|
||||
#include <cstdlib>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
// libstdc++/9533
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
// 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.
|
||||
//
|
||||
// This file is part of the GNU ISO C++ Library. This library is free
|
||||
@ -25,6 +25,7 @@
|
||||
// 27.8.1.4 Overridden virtual functions
|
||||
|
||||
#include <fstream>
|
||||
#include <cstdlib>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -1,6 +1,7 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -23,6 +24,7 @@
|
||||
#include <istream>
|
||||
#include <sstream>
|
||||
#include <locale>
|
||||
#include <cstdlib>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
// In the presence of no fmtflags, the input operator should behave
|
||||
|
@ -1,6 +1,6 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -23,6 +23,7 @@
|
||||
#include <istream>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <cstdlib>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -23,6 +23,7 @@
|
||||
#include <istream>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <cstdlib>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -21,6 +21,7 @@
|
||||
#include <istream>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <cstdlib>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -21,6 +21,7 @@
|
||||
#include <istream>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <cstdlib>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -22,6 +22,7 @@
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <limits>
|
||||
#include <cstdlib>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -22,6 +22,7 @@
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <limits>
|
||||
#include <cstdlib>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
using namespace std;
|
||||
|
@ -1,6 +1,7 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -25,6 +26,7 @@
|
||||
#include <ostream>
|
||||
#include <istream>
|
||||
#include <fstream>
|
||||
#include <cstdlib>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
const char* s = " lootpack, peanut butter wolf, rob swift, madlib, quasimoto";
|
||||
|
@ -1,4 +1,4 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -23,6 +23,7 @@
|
||||
#include <ostream>
|
||||
#include <istream>
|
||||
#include <fstream>
|
||||
#include <cstdlib>
|
||||
#include <testsuite_hooks.h>
|
||||
|
||||
const wchar_t* s = L" lootpack, peanut butter wolf, rob swift, madlib, quasimoto";
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -25,6 +25,7 @@
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -26,6 +26,7 @@
|
||||
|
||||
#include <testsuite_hooks.h>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -25,6 +25,7 @@
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -26,6 +26,7 @@
|
||||
|
||||
#include <testsuite_hooks.h>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
|
@ -1,5 +1,5 @@
|
||||
//
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -21,6 +21,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <stdexcept>
|
||||
#include <cstdlib>
|
||||
#include <ext/new_allocator.h>
|
||||
|
||||
static size_t count;
|
||||
@ -39,8 +40,8 @@ static count_check check;
|
||||
|
||||
void* operator new(size_t size) throw(std::bad_alloc)
|
||||
{
|
||||
printf("operator new is called \n");
|
||||
void* p = malloc(size);
|
||||
std::printf("operator new is called \n");
|
||||
void* p = std::malloc(size);
|
||||
if (p == NULL)
|
||||
throw std::bad_alloc();
|
||||
count++;
|
||||
@ -49,7 +50,7 @@ void* operator new(size_t size) throw(std::bad_alloc)
|
||||
|
||||
void operator delete(void* p) throw()
|
||||
{
|
||||
printf("operator delete is called \n");
|
||||
std::printf("operator delete is called \n");
|
||||
if (p == NULL)
|
||||
return;
|
||||
count--;
|
||||
|
@ -1,5 +1,5 @@
|
||||
//
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -21,6 +21,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <stdexcept>
|
||||
#include <cstdlib>
|
||||
#include <ext/new_allocator.h>
|
||||
|
||||
static size_t count;
|
||||
@ -39,8 +40,8 @@ static count_check check;
|
||||
|
||||
void* operator new(size_t size) throw(std::bad_alloc)
|
||||
{
|
||||
printf("operator new is called \n");
|
||||
void* p = malloc(size);
|
||||
std::printf("operator new is called \n");
|
||||
void* p = std::malloc(size);
|
||||
if (p == NULL)
|
||||
throw std::bad_alloc();
|
||||
count++;
|
||||
@ -49,7 +50,7 @@ void* operator new(size_t size) throw(std::bad_alloc)
|
||||
|
||||
void operator delete(void* p) throw()
|
||||
{
|
||||
printf("operator delete is called \n");
|
||||
std::printf("operator delete is called \n");
|
||||
if (p == NULL)
|
||||
return;
|
||||
count--;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// -*- 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
|
||||
// software; you can redistribute it and/or modify it under the terms
|
||||
@ -52,6 +52,7 @@
|
||||
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
#include <ext/pb_ds/assoc_container.hpp>
|
||||
#include <ext/pb_ds/trie_policy.hpp>
|
||||
|
||||
@ -102,7 +103,7 @@ public:
|
||||
case 'T':
|
||||
return 3;
|
||||
default:
|
||||
abort();
|
||||
std::abort();
|
||||
};
|
||||
}
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -26,6 +26,7 @@
|
||||
// the GNU General Public License.
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <fstream>
|
||||
#include <testsuite_performance.h>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -26,6 +26,7 @@
|
||||
// the GNU General Public License.
|
||||
|
||||
#include <fstream>
|
||||
#include <cstdlib>
|
||||
#include <testsuite_performance.h>
|
||||
|
||||
// libstdc++/5001 (100,000 line input file)
|
||||
|
@ -31,6 +31,7 @@
|
||||
// if the STL threading support is fubar'd).
|
||||
|
||||
#include <list>
|
||||
#include <cstdlib>
|
||||
#include <pthread.h>
|
||||
|
||||
using namespace std;
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include <vector>
|
||||
#include <list>
|
||||
#include <string>
|
||||
#include <cstdlib>
|
||||
#include <pthread.h>
|
||||
|
||||
#ifdef _GLIBCXX_HAVE_UNISTD_H
|
||||
|
@ -1,4 +1,4 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -27,6 +27,7 @@
|
||||
#include <vector>
|
||||
#include <testsuite_hooks.h>
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
@ -169,14 +170,14 @@ test01()
|
||||
{
|
||||
if (pthread_create(&threads[worker], &tattr,
|
||||
thread_hammer, reinterpret_cast<void*>(&weak_pool[worker])))
|
||||
abort();
|
||||
std::abort();
|
||||
}
|
||||
// Wait for threads to complete, then check integrity of reference.
|
||||
void* status;
|
||||
for (unsigned int worker = 0; worker < HAMMER_MAX_THREADS; worker++)
|
||||
{
|
||||
if (pthread_join(threads[worker], &status))
|
||||
abort();
|
||||
std::abort();
|
||||
}
|
||||
obj_pool.clear();
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -27,6 +27,7 @@
|
||||
#include <vector>
|
||||
#include <testsuite_hooks.h>
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
@ -171,14 +172,14 @@ test01()
|
||||
{
|
||||
if (pthread_create(&threads[worker], &tattr,
|
||||
thread_hammer, reinterpret_cast<void*>(&weak_pool[worker])))
|
||||
abort();
|
||||
std::abort();
|
||||
}
|
||||
// Wait for threads to complete, then check integrity of reference.
|
||||
void* status;
|
||||
for (unsigned int worker = 0; worker < HAMMER_MAX_THREADS; worker++)
|
||||
{
|
||||
if (pthread_join(threads[worker], &status))
|
||||
abort();
|
||||
std::abort();
|
||||
}
|
||||
obj_pool.clear();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user