Commit 1b716e90 by Paolo Carlini Committed by Paolo Carlini

11.cc: Include <cstring>.

2007-05-10  Paolo Carlini  <pcarlini@suse.de>

	* 27_io/objects/wchar_t/11.cc: Include <cstring>.
	* 27_io/objects/wchar_t/10.cc: Likewise.
	* 27_io/objects/wchar_t/12.cc: Likewise.
	* 27_io/basic_streambuf/sputbackc/char/9538.cc: Likewise.
	* 27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
	* 27_io/basic_streambuf/overflow/char/1.cc: Likewise.
	* 27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
	* 27_io/basic_streambuf/sputn/wchar_t/1.cc: Likewise.
	* 27_io/basic_streambuf/sputn/char/1.cc: Likewise.
	* 27_io/basic_ios/cons/char/3.cc: Likewise.
	* 27_io/basic_stringbuf/setbuf/char/2.cc: Likewise.
	* 27_io/basic_stringbuf/setbuf/char/3.cc: Likewise.
	* 27_io/basic_stringbuf/setbuf/char/4.cc: Likewise.
	* 27_io/basic_istream/extractors_character/char/4.cc: Likewise.
	* 27_io/fpos/mbstate_t/1.cc: Likewise.
	* 27_io/basic_filebuf/setbuf/char/2.cc: Likewise.
	* 27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
	* 25_algorithms/copy/streambuf_iterators/char/2.cc: Likewise.
	* 25_algorithms/copy/streambuf_iterators/char/4.cc: Likewise.
	* 19_diagnostics/stdexceptions.cc: Likewise.
	* 21_strings/char_traits/requirements/short/1.cc: Likewise.
	* 21_strings/basic_string/compare/char/1.cc: Likewise.
	* 21_strings/basic_string/capacity/1.cc: Likewise.
	* ext/codecvt/char-1.cc: Likewise.
	* ext/codecvt/char-2.cc: Likewise.
	* ext/codecvt/1.cc: Likewise.
	* ext/stdio_sync_filebuf/wchar_t/1.cc: Likewise.
	* ext/stdio_sync_filebuf/char/1.cc: Likewise.
	* ext/stdio_filebuf/char/2.cc: Likewise.
	* ext/stdio_filebuf/char/10063-1.cc: Likewise.
	* 22_locale/ctype/narrow/char/19955.cc: Likewise.
	* 22_locale/codecvt/unshift/wchar_t/1.cc: Likewise.
	* 22_locale/codecvt/unshift/wchar_t/2.cc: Likewise.
	* 22_locale/codecvt/unshift/wchar_t/3.cc: Likewise.
	* 22_locale/codecvt/unshift/wchar_t/4.cc: Likewise.
	* 22_locale/codecvt/unshift/char/1.cc: Likewise.
	* 22_locale/codecvt/length/wchar_t/1.cc: Likewise.
	* 22_locale/codecvt/length/wchar_t/2.cc: Likewise.
	* 22_locale/codecvt/length/wchar_t/3.cc: Likewise.
	* 22_locale/codecvt/length/wchar_t/4.cc: Likewise.
	* 22_locale/codecvt/length/wchar_t/5.cc: Likewise.
	* 22_locale/codecvt/length/wchar_t/6.cc: Likewise.
	* 22_locale/codecvt/length/wchar_t/7.cc: Likewise.
	* 22_locale/codecvt/always_noconv/char/1.cc: Likewise.
	* 22_locale/codecvt/encoding/char/1.cc: Likewise.
	* 22_locale/codecvt/in/wchar_t/1.cc: Likewise.
	* 22_locale/codecvt/in/wchar_t/2.cc: Likewise.
	* 22_locale/codecvt/in/wchar_t/3.cc: Likewise.
	* 22_locale/codecvt/in/wchar_t/4.cc: Likewise.
	* 22_locale/codecvt/in/wchar_t/5.cc: Likewise.
	* 22_locale/codecvt/in/wchar_t/6.cc: Likewise.
	* 22_locale/codecvt/in/wchar_t/7.cc: Likewise.
	* 22_locale/codecvt/in/wchar_t/8.cc: Likewise.
	* 22_locale/codecvt/in/wchar_t/9.cc: Likewise.
	* 22_locale/codecvt/in/char/1.cc: Likewise.
	* 22_locale/codecvt/max_length/char/1.cc: Likewise.
	* 22_locale/codecvt/out/wchar_t/1.cc: Likewise.
	* 22_locale/codecvt/out/wchar_t/2.cc: Likewise.
	* 22_locale/codecvt/out/wchar_t/3.cc: Likewise.
	* 22_locale/codecvt/out/wchar_t/4.cc: Likewise.
	* 22_locale/codecvt/out/wchar_t/5.cc: Likewise.
	* 22_locale/codecvt/out/wchar_t/6.cc: Likewise.
	* 22_locale/codecvt/out/wchar_t/7.cc: Likewise.
	* 22_locale/codecvt/out/char/1.cc: Likewise.
	* 22_locale/locale/cons/5.cc: Likewise.
	* 22_locale/collate_byname/named_equivalence.cc: Likewise.

From-SVN: r124610
parent 81cfbea3
2007-05-10 Paolo Carlini <pcarlini@suse.de>
* 27_io/objects/wchar_t/11.cc: Include <cstring>.
* 27_io/objects/wchar_t/10.cc: Likewise.
* 27_io/objects/wchar_t/12.cc: Likewise.
* 27_io/basic_streambuf/sputbackc/char/9538.cc: Likewise.
* 27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
* 27_io/basic_streambuf/overflow/char/1.cc: Likewise.
* 27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
* 27_io/basic_streambuf/sputn/wchar_t/1.cc: Likewise.
* 27_io/basic_streambuf/sputn/char/1.cc: Likewise.
* 27_io/basic_ios/cons/char/3.cc: Likewise.
* 27_io/basic_stringbuf/setbuf/char/2.cc: Likewise.
* 27_io/basic_stringbuf/setbuf/char/3.cc: Likewise.
* 27_io/basic_stringbuf/setbuf/char/4.cc: Likewise.
* 27_io/basic_istream/extractors_character/char/4.cc: Likewise.
* 27_io/fpos/mbstate_t/1.cc: Likewise.
* 27_io/basic_filebuf/setbuf/char/2.cc: Likewise.
* 27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
* 25_algorithms/copy/streambuf_iterators/char/2.cc: Likewise.
* 25_algorithms/copy/streambuf_iterators/char/4.cc: Likewise.
* 19_diagnostics/stdexceptions.cc: Likewise.
* 21_strings/char_traits/requirements/short/1.cc: Likewise.
* 21_strings/basic_string/compare/char/1.cc: Likewise.
* 21_strings/basic_string/capacity/1.cc: Likewise.
* ext/codecvt/char-1.cc: Likewise.
* ext/codecvt/char-2.cc: Likewise.
* ext/codecvt/1.cc: Likewise.
* ext/stdio_sync_filebuf/wchar_t/1.cc: Likewise.
* ext/stdio_sync_filebuf/char/1.cc: Likewise.
* ext/stdio_filebuf/char/2.cc: Likewise.
* ext/stdio_filebuf/char/10063-1.cc: Likewise.
* 22_locale/ctype/narrow/char/19955.cc: Likewise.
* 22_locale/codecvt/unshift/wchar_t/1.cc: Likewise.
* 22_locale/codecvt/unshift/wchar_t/2.cc: Likewise.
* 22_locale/codecvt/unshift/wchar_t/3.cc: Likewise.
* 22_locale/codecvt/unshift/wchar_t/4.cc: Likewise.
* 22_locale/codecvt/unshift/char/1.cc: Likewise.
* 22_locale/codecvt/length/wchar_t/1.cc: Likewise.
* 22_locale/codecvt/length/wchar_t/2.cc: Likewise.
* 22_locale/codecvt/length/wchar_t/3.cc: Likewise.
* 22_locale/codecvt/length/wchar_t/4.cc: Likewise.
* 22_locale/codecvt/length/wchar_t/5.cc: Likewise.
* 22_locale/codecvt/length/wchar_t/6.cc: Likewise.
* 22_locale/codecvt/length/wchar_t/7.cc: Likewise.
* 22_locale/codecvt/always_noconv/char/1.cc: Likewise.
* 22_locale/codecvt/encoding/char/1.cc: Likewise.
* 22_locale/codecvt/in/wchar_t/1.cc: Likewise.
* 22_locale/codecvt/in/wchar_t/2.cc: Likewise.
* 22_locale/codecvt/in/wchar_t/3.cc: Likewise.
* 22_locale/codecvt/in/wchar_t/4.cc: Likewise.
* 22_locale/codecvt/in/wchar_t/5.cc: Likewise.
* 22_locale/codecvt/in/wchar_t/6.cc: Likewise.
* 22_locale/codecvt/in/wchar_t/7.cc: Likewise.
* 22_locale/codecvt/in/wchar_t/8.cc: Likewise.
* 22_locale/codecvt/in/wchar_t/9.cc: Likewise.
* 22_locale/codecvt/in/char/1.cc: Likewise.
* 22_locale/codecvt/max_length/char/1.cc: Likewise.
* 22_locale/codecvt/out/wchar_t/1.cc: Likewise.
* 22_locale/codecvt/out/wchar_t/2.cc: Likewise.
* 22_locale/codecvt/out/wchar_t/3.cc: Likewise.
* 22_locale/codecvt/out/wchar_t/4.cc: Likewise.
* 22_locale/codecvt/out/wchar_t/5.cc: Likewise.
* 22_locale/codecvt/out/wchar_t/6.cc: Likewise.
* 22_locale/codecvt/out/wchar_t/7.cc: Likewise.
* 22_locale/codecvt/out/char/1.cc: Likewise.
* 22_locale/locale/cons/5.cc: Likewise.
* 22_locale/collate_byname/named_equivalence.cc: Likewise.
2007-05-07 Mark Mitchell <mark@codesourcery.com>
* libstdc++-v3/libsupc++/cxxabi.h (_GLIBCXX_NOTHROW): New macro.
......
// 2001-02-26 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002 Free Software Foundation, Inc.
// 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
// software; you can redistribute it and/or modify it under the
......@@ -21,6 +22,7 @@
// 19.1 Exception classes
#include <string>
#include <cstring>
#include <stdexcept>
#include <testsuite_hooks.h>
......
// 1999-05-11 bkoz
// Copyright (C) 1999, 2002, 2003, 2004 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
......@@ -21,6 +22,7 @@
// 21.3.3 string capacity
#include <string>
#include <cstring>
#include <testsuite_hooks.h>
template<typename T>
......
// 980930 bkoz work with libstdc++v3
// Copyright (C) 1998, 1999, 2003, 2004 Free Software Foundation, Inc.
// Copyright (C) 1998, 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
......@@ -31,6 +33,7 @@
// things would be sorted in a dictionary.
#include <string>
#include <cstring>
#include <testsuite_hooks.h>
enum want_value {lt=0, z=1, gt=2};
......
// 1999-06-03 bkoz
// 2003-07-22 Matt Austern
// Copyright (C) 1999, 2000, 2001, 2003, 2004 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
......@@ -25,6 +26,7 @@
// satisfy the requirements of 21.1.1.
#include <string>
#include <cstring>
#include <testsuite_hooks.h>
void test02(void)
......@@ -139,7 +141,7 @@ void test02(void)
// short* X::assign(short* s, size_t n, short c)
len = sizeof(array2) / sizeof(short);
memset(array2, 0xaf, len * sizeof(short));
std::memset(array2, 0xaf, len * sizeof(short));
VERIFY( array2[0] != 0x15a8 );
pc1 = std::char_traits<short>::assign (array2, len, 0x15a8);
......
// 2000-08-17 Benjamin Kosnik <bkoz@cygnus.com>
// Copyright (C) 2000, 2002, 2003 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
......@@ -21,6 +22,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Required instantiation, degenerate conversion.
......
// 2000-08-17 Benjamin Kosnik <bkoz@cygnus.com>
// Copyright (C) 2000, 2002, 2003 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
......@@ -21,6 +22,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Required instantiation, degenerate conversion.
......
// 2000-08-17 Benjamin Kosnik <bkoz@cygnus.com>
// Copyright (C) 2000, 2002, 2003 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
......@@ -21,6 +22,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Required instantiation, degenerate conversion.
......
// 2000-08-17 Benjamin Kosnik <bkoz@cygnus.com>
// Copyright (C) 2000, 2002, 2003, 2006 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
......@@ -21,6 +22,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
......@@ -2,7 +2,7 @@
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 Free Software Foundation
// Copyright (C) 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 +23,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
......@@ -2,7 +2,7 @@
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 Free Software Foundation
// Copyright (C) 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 +23,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
......@@ -2,7 +2,7 @@
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 Free Software Foundation
// Copyright (C) 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 +23,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2006 Free Software Foundation
// Copyright (C) 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
......@@ -21,6 +21,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2006 Free Software Foundation
// Copyright (C) 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
......@@ -21,6 +21,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
......@@ -2,7 +2,7 @@
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 Free Software Foundation
// Copyright (C) 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 +23,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
......@@ -2,7 +2,7 @@
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 Free Software Foundation
// Copyright (C) 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 +23,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
......@@ -2,7 +2,7 @@
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 Free Software Foundation
// Copyright (C) 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 +23,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
// 2000-08-17 Benjamin Kosnik <bkoz@cygnus.com>
// Copyright (C) 2000, 2002, 2003 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
......@@ -21,6 +22,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
......@@ -2,7 +2,7 @@
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 Free Software Foundation
// Copyright (C) 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 +23,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
......@@ -2,7 +2,7 @@
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 Free Software Foundation
// Copyright (C) 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 +23,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
......@@ -2,7 +2,7 @@
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 Free Software Foundation
// Copyright (C) 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 +23,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation
// Copyright (C) 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
......@@ -21,6 +21,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation
// Copyright (C) 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
......@@ -21,6 +21,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
......@@ -2,7 +2,7 @@
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 Free Software Foundation
// Copyright (C) 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 +23,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
// 2000-08-17 Benjamin Kosnik <bkoz@cygnus.com>
// Copyright (C) 2000, 2002, 2003 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
......@@ -21,6 +22,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Required instantiation, degenerate conversion.
......
// 2000-08-17 Benjamin Kosnik <bkoz@cygnus.com>
// Copyright (C) 2000, 2002, 2003 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
......@@ -21,6 +22,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Required instantiation, degenerate conversion.
......
// 2000-08-17 Benjamin Kosnik <bkoz@cygnus.com>
// Copyright (C) 2000, 2002, 2003 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
......@@ -21,6 +22,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
......@@ -2,7 +2,7 @@
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 Free Software Foundation
// Copyright (C) 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 +23,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
......@@ -2,7 +2,7 @@
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 Free Software Foundation
// Copyright (C) 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 +23,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
......@@ -2,7 +2,7 @@
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 Free Software Foundation
// Copyright (C) 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 +23,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation
// Copyright (C) 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
......@@ -21,6 +21,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation
// Copyright (C) 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
......@@ -21,6 +21,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
......@@ -2,7 +2,7 @@
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 Free Software Foundation
// Copyright (C) 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 +23,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
// 2000-08-17 Benjamin Kosnik <bkoz@cygnus.com>
// Copyright (C) 2000, 2002, 2003 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
......@@ -21,6 +22,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Required instantiation, degenerate conversion.
......
// 2000-08-17 Benjamin Kosnik <bkoz@cygnus.com>
// Copyright (C) 2000, 2002, 2003 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
......@@ -21,6 +22,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
......@@ -2,7 +2,7 @@
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 Free Software Foundation
// Copyright (C) 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 +23,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
......@@ -2,7 +2,7 @@
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 Free Software Foundation
// Copyright (C) 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 +23,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
......@@ -2,7 +2,7 @@
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 Free Software Foundation
// Copyright (C) 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 +23,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.
......
......@@ -2,7 +2,8 @@
// 2001-08-15 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2005 Free Software Foundation
// Copyright (C) 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.2.4.2 Template class collate_byname
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
void test01()
......
// Copyright (C) 2005 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
......@@ -28,6 +28,7 @@
// 22.2.1.3.2 ctype<char> members
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
class Ctype1
......
......@@ -24,6 +24,7 @@
// 22.1.1.2 locale constructors and destructors [lib.locale.cons]
#include <cwchar> // for mbstate_t
#include <cstring>
#include <cstdlib>
#include <locale>
#include <stdexcept>
......
// 2006-03-20 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
......@@ -21,6 +21,7 @@
#include <iterator>
#include <sstream>
#include <algorithm>
#include <cstring>
#include <testsuite_hooks.h>
// In the occasion of libstdc++/25482
......
// 2006-03-20 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
......@@ -21,6 +21,7 @@
#include <iterator>
#include <fstream>
#include <algorithm>
#include <cstring>
#include <testsuite_hooks.h>
// In the occasion of libstdc++/25482
......
// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
// 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
// software; you can redistribute it and/or modify it under the
......@@ -23,6 +24,7 @@
// { dg-require-fileio "" }
#include <fstream>
#include <cstring>
#include <testsuite_hooks.h>
void test01()
......
// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
// 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
// software; you can redistribute it and/or modify it under the
......@@ -23,6 +24,7 @@
// { dg-require-fileio "" }
#include <fstream>
#include <cstring>
#include <testsuite_hooks.h>
void test03()
......
......@@ -32,6 +32,7 @@
#include <sstream>
#include <typeinfo>
#include <cstring>
#include <testsuite_hooks.h>
// char_traits specialization
......
......@@ -26,6 +26,7 @@
#include <string>
#include <fstream>
#include <cstdlib>
#include <cstring>
#include <testsuite_hooks.h>
using namespace std;
......
// 1999-10-11 bkoz
// Copyright (C) 1999, 2000, 2001, 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
......@@ -30,6 +31,7 @@
// 27.5.2 template class basic_streambuf
#include <streambuf>
#include <cstring>
#include <testsuite_hooks.h>
class testbuf : public std::streambuf
......@@ -94,7 +96,7 @@ void test01()
bool test __attribute__((unused)) = true;
char lit01[52];
strcpy(lit01, "chicago underground trio/possible cube on delmark");
std::strcpy(lit01, "chicago underground trio/possible cube on delmark");
testbuf buf01;
// pbackfail
......
// 1999-10-11 bkoz
// Copyright (C) 1999, 2000, 2001, 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
......@@ -30,6 +31,7 @@
// 27.5.2 template class basic_streambuf
#include <streambuf>
#include <cstring>
#include <testsuite_hooks.h>
class testbuf : public std::streambuf
......@@ -94,7 +96,7 @@ void test01()
bool test __attribute__((unused)) = true;
char lit01[52];
strcpy(lit01, "chicago underground trio/possible cube on delmark");
std::strcpy(lit01, "chicago underground trio/possible cube on delmark");
testbuf buf01;
// 27.5.2.3.1 get area
......
// 1999-10-11 bkoz
// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2005
// 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
......@@ -31,6 +31,7 @@
// 27.5.2 template class basic_streambuf
#include <streambuf>
#include <cstring>
#include <testsuite_hooks.h>
class testbuf : public std::streambuf
......
// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
// 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
// software; you can redistribute it and/or modify it under the
......@@ -22,6 +23,7 @@
#include <streambuf>
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
class MyTraits : public std::char_traits<char>
......
// 1999-10-11 bkoz
// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2005
// 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
......@@ -31,6 +31,7 @@
// 27.5.2 template class basic_streambuf
#include <streambuf>
#include <cstring>
#include <testsuite_hooks.h>
class testbuf : public std::streambuf
......
// 1999-10-11 bkoz
// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
// 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
......@@ -32,6 +32,7 @@
#include <streambuf>
#include <cwchar>
#include <cstring>
#include <testsuite_hooks.h>
class testbuf : public std::wstreambuf
......
// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
// 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
// software; you can redistribute it and/or modify it under the
......@@ -21,6 +22,7 @@
// 27.8.1.4 Overridden virtual functions
#include <sstream>
#include <cstring>
#include <testsuite_hooks.h>
void test01()
......
// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com>
// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
// 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
// software; you can redistribute it and/or modify it under the
......@@ -21,6 +22,7 @@
// 27.8.1.4 Overridden virtual functions
#include <sstream>
#include <cstring>
#include <testsuite_hooks.h>
void test02()
......
// 2004-10-06 Paolo Carlini <pcarlini@suse.de>
// 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
......@@ -21,6 +21,7 @@
// 27.8.1.4 Overridden virtual functions
#include <sstream>
#include <cstring>
#include <testsuite_hooks.h>
void test01()
......
// 1999-09-20 bkoz
// Copyright (C) 1999, 2001, 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
......@@ -31,6 +32,7 @@
#include <cwchar> // for mbstate_t
#include <ios>
#include <cstring>
#include <testsuite_hooks.h>
void test01()
......@@ -55,7 +57,7 @@ void test01()
// place.
pos01.state(state02);
state01 = pos01.state();
test = memcmp(&state01, &state02, sizeof(state_type)) == 0;
test = std::memcmp(&state01, &state02, sizeof(state_type)) == 0;
VERIFY( test );
}
......
......@@ -2,7 +2,7 @@
// 2003-05-01 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 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
......@@ -22,6 +22,7 @@
#include <iostream>
#include <cstdio>
#include <cstring>
#include <testsuite_hooks.h>
// Test handling of UTF-8 in wcin
......
......@@ -2,7 +2,7 @@
// 2003-05-01 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 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
......@@ -22,6 +22,7 @@
#include <iostream>
#include <cstdio>
#include <cstring>
#include <testsuite_hooks.h>
// Test handling of UTF-8 in wcout
......
......@@ -2,7 +2,7 @@
// 2003-09-04 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2005 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 <iostream>
#include <cstdio>
#include <cstring>
#include <testsuite_hooks.h>
// Test handling of UTF-8 in wcout
......
......@@ -2,7 +2,7 @@
// { dg-require-iconv "ISO-8859-15" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2007 Free Software Foundation
// Copyright (C) 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 +23,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
#include <ext/codecvt_specializations.h>
......
......@@ -3,7 +3,8 @@
// 2000-08-22 Benjamin Kosnik <bkoz@cygnus.com>
// Copyright (C) 2000, 2001, 2002, 2003, 2007 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.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
#include <ext/codecvt_specializations.h>
......
......@@ -3,7 +3,8 @@
// 2000-08-22 Benjamin Kosnik <bkoz@cygnus.com>
// Copyright (C) 2000, 2001, 2002, 2003, 2007 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.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <cstring>
#include <testsuite_hooks.h>
#include <ext/codecvt_specializations.h>
......
// Copyright (C) 2000, 2001, 2002, 2003 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
......@@ -20,6 +21,7 @@
#include <cstdio>
#include <fstream>
#include <cstring>
#include <ext/stdio_filebuf.h>
#include <testsuite_hooks.h>
......
// 2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
// 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
......@@ -25,6 +25,7 @@
#include <ext/stdio_filebuf.h>
#include <cstdio>
#include <fstream>
#include <cstring>
#include <testsuite_hooks.h>
// Small stack-based buffers (i.e., using _M_unbuf) were not flushed
......
// 2003-05-01 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003 Free Software Foundation
// Copyright (C) 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
......@@ -21,6 +21,7 @@
// { dg-require-fileio "" }
#include <ext/stdio_sync_filebuf.h>
#include <cstring>
#include <testsuite_hooks.h>
void test01()
......
// 2003-05-01 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2006 Free Software Foundation
// Copyright (C) 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
......@@ -19,6 +19,7 @@
// USA.
#include <ext/stdio_sync_filebuf.h>
#include <cstring>
#include <testsuite_hooks.h>
void test01()
......
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