+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
// 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.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
// 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
// satisfy the requirements of 21.1.1.
#include <string>
+#include <cstring>
#include <testsuite_hooks.h>
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
// 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
// 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
// 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
// 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, 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
// 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, 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
// 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, 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
// 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
// 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
// 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, 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
// 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, 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
// 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, 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
// 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
// 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, 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
// 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, 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
// 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, 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
// 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
// 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
// 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, 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
// 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
// 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
// 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
// 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, 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
// 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, 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
// 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, 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
// 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
// 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
// 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, 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
// 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
// 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
// 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, 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
// 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, 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
// 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, 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
// 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.
// 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
// 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
// 22.2.1.3.2 ctype<char> members
#include <locale>
+#include <cstring>
#include <testsuite_hooks.h>
class Ctype1
// 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
#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
#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
// { 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
// { dg-require-fileio "" }
#include <fstream>
+#include <cstring>
#include <testsuite_hooks.h>
void test03()
#include <sstream>
#include <typeinfo>
+#include <cstring>
#include <testsuite_hooks.h>
// char_traits specialization
#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
// 27.5.2 template class basic_streambuf
#include <streambuf>
+#include <cstring>
#include <testsuite_hooks.h>
class testbuf : public std::streambuf
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
// 27.5.2 template class basic_streambuf
#include <streambuf>
+#include <cstring>
#include <testsuite_hooks.h>
class testbuf : public std::streambuf
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
// 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
#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
// 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
#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
// 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
// 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
// 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
#include <cwchar> // for mbstate_t
#include <ios>
+#include <cstring>
#include <testsuite_hooks.h>
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 );
}
// 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
#include <iostream>
#include <cstdio>
+#include <cstring>
#include <testsuite_hooks.h>
// Test handling of UTF-8 in wcin
// 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
#include <iostream>
#include <cstdio>
+#include <cstring>
#include <testsuite_hooks.h>
// Test handling of UTF-8 in wcout
// 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
#include <iostream>
#include <cstdio>
+#include <cstring>
#include <testsuite_hooks.h>
// Test handling of UTF-8 in wcout
// { 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
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
+#include <cstring>
#include <testsuite_hooks.h>
#include <ext/codecvt_specializations.h>
// 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
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
+#include <cstring>
#include <testsuite_hooks.h>
#include <ext/codecvt_specializations.h>
// 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
// 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
#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
#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
// { 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
// USA.
#include <ext/stdio_sync_filebuf.h>
+#include <cstring>
#include <testsuite_hooks.h>
void test01()