+2006-01-05 Paolo Carlini <pcarlini@suse.de>
+
+ * testsuite/testsuite_hooks.h (test_tm(unsigned)): New.
+ * testsuite/testsuite_hooks.cc (test_tm(unsigned)): Define.
+ * testsuite/22_locale/time_put/put/wchar_t/10.cc: Use it.
+ * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
+ * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
+ * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
+ * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
+ * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
+ * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
+ * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
+ * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
+ * testsuite/22_locale/time_put/put/wchar_t/9.cc: Likewise.
+ * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
+ * testsuite/22_locale/time_put/put/char/10.cc: Likewise.
+ * testsuite/22_locale/time_put/put/char/1.cc: Likewise.
+ * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
+ * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
+ * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
+ * testsuite/22_locale/time_put/put/char/5.cc: Likewise.
+ * testsuite/22_locale/time_put/put/char/6.cc: Likewise.
+ * testsuite/22_locale/time_put/put/char/7.cc: Likewise.
+ * testsuite/22_locale/time_put/put/char/8.cc: Likewise.
+ * testsuite/22_locale/time_put/put/char/9.cc: Likewise.
+ * testsuite/22_locale/time_put/put/char/17038.cc: Likewise.
+ * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
+ * testsuite/22_locale/time_get/get_year/wchar_t/3.cc: Likewise.
+ * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
+ * testsuite/22_locale/time_get/get_year/char/3.cc: Likewise.
+ * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
+ * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Likewise.
+ * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
+ * testsuite/22_locale/time_get/get_monthname/char/2.cc: Likewise.
+ * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
+ * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Likewise.
+ * testsuite/22_locale/time_get/get_weekday/wchar_t/3.cc: Likewise.
+ * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
+ * testsuite/22_locale/time_get/get_weekday/char/2.cc: Likewise.
+ * testsuite/22_locale/time_get/get_weekday/char/3.cc: Likewise.
+ * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
+ * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Likewise.
+ * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
+ * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Likewise.
+ * testsuite/22_locale/time_get/get_date/wchar_t/3.cc: Likewise.
+ * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
+ * testsuite/22_locale/time_get/get_date/char/12750.cc: Likewise.
+ * testsuite/22_locale/time_get/get_date/char/1.cc: Likewise.
+ * testsuite/22_locale/time_get/get_date/char/2.cc: Likewise.
+ * testsuite/22_locale/time_get/get_date/char/3.cc: Likewise.
+ * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
+ * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Likewise.
+ * testsuite/22_locale/time_get/get_time/wchar_t/3.cc: Likewise.
+ * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
+ * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
+ * testsuite/22_locale/time_get/get_time/char/2.cc: Likewise.
+ * testsuite/22_locale/time_get/get_time/char/3.cc: Likewise.
+ * testsuite/22_locale/time_get/get_time/char/4.cc: Likewise.
+
2006-01-04 Paolo Carlini <pcarlini@suse.de>
* include/ext/sso_string_base.h (__sso_string_base<>::_M_dataplus):
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(0);
// iter_type
// get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
// 2003-10-27 Paolo Carlini <pcarlini@suse.de>
-// Copyright (C) 2003, 2005 Free Software Foundation
+// Copyright (C) 2003, 2004, 2005, 2006 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
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday01 = { 0, 0, 12, 2, 9, 103, 4, 274, -1 };
- const tm time_bday02 = { 0, 0, 12, 26, 9, 103, 0, 298, -1 };
+ const tm time_bday01 = __gnu_test::test_tm(2);
+ const tm time_bday02 = __gnu_test::test_tm(3);
// inspection of named locales, is_IS
iss.imbue(loc_is);
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(0);
// iter_type
// get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
+ const tm time_sanity = __gnu_test::test_tm(1);
tm tm1;
istringstream iss;
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(0);
// iter_type
// get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
// 2003-10-27 Paolo Carlini <pcarlini@suse.de>
-// Copyright (C) 2003, 2005 Free Software Foundation
+// Copyright (C) 2003, 2004, 2005, 2006 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
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday01 = { 0, 0, 12, 2, 9, 103, 4, 274, -1 };
- const tm time_bday02 = { 0, 0, 12, 26, 9, 103, 0, 298, -1 };
+ const tm time_bday01 = __gnu_test::test_tm(2);
+ const tm time_bday02 = __gnu_test::test_tm(3);
// inspection of named locales, is_IS
iss.imbue(loc_is);
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(0);
// iter_type
// get_date(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
+ const tm time_sanity = __gnu_test::test_tm(1);
tm tm1;
istringstream iss;
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
locale loc_c = locale::classic();
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(0);
// iter_type
// get_monthname(iter_type, iter_type, ios_base&,
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2005, 2006 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
VERIFY( loc_hk != loc_c );
VERIFY( loc_hk != loc_de );
- const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(0);
const string empty;
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
locale loc_c = locale::classic();
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(0);
// iter_type
// get_monthname(iter_type, iter_type, ios_base&,
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
VERIFY( loc_hk != loc_c );
VERIFY( loc_hk != loc_de );
- const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(0);
const wstring empty;
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(0);
// 2
// iter_type
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
VERIFY( loc_hk != loc_c );
const string empty;
- const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(0);
// create an ostream-derived object, cache the time_get facet
iterator_type end;
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
+ const tm time_sanity = __gnu_test::test_tm(1);
tm tm1;
istringstream iss;
// 2004-08-29 Paolo Carlini <pcarlini@suse.de>
-// Copyright (C) 2004 Free Software Foundation
+// Copyright (C) 2004, 2005, 2006 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
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 60, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(4);
iss.str("12:00:60 ");
iterator_type is_it01(iss);
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(0);
// 2
// iter_type
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
VERIFY( loc_hk != loc_c );
const wstring empty;
- const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(0);
// create an ostream-derived object, cache the time_get facet
iterator_type end;
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
+ const tm time_sanity = __gnu_test::test_tm(1);
tm tm1;
wistringstream iss;
// 2004-08-29 Paolo Carlini <pcarlini@suse.de>
-// Copyright (C) 2004 Free Software Foundation
+// Copyright (C) 2004, 2005, 2006 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
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 60, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(4);
iss.str(L"12:00:60 ");
iterator_type is_it01(iss);
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(0);
// iter_type
// get_weekday(iter_type, iter_type, ios_base&,
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(0);
// inspection of named locales, de_DE
iss.imbue(loc_de);
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
+ const tm time_sanity = __gnu_test::test_tm(1);
tm tm1;
istringstream iss;
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(0);
// iter_type
// get_weekday(iter_type, iter_type, ios_base&,
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(0);
// inspection of named locales, de_DE
iss.imbue(loc_de);
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
+ const tm time_sanity = __gnu_test::test_tm(1);
tm tm1;
wistringstream iss;
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(0);
// iter_type
// get_year(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
+ const tm time_sanity = __gnu_test::test_tm(1);
tm tm1;
istringstream iss;
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
ios_base::iostate errorstate = good;
// create "C" time objects
- const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time_bday = __gnu_test::test_tm(0);
// iter_type
// get_year(iter_type, iter_type, ios_base&, ios_base::iostate&, tm*) const
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
const locale loc_c = locale::classic();
// Create "C" time objects
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2, 0, 0 };
+ const tm time_sanity = __gnu_test::test_tm(1);
tm tm1;
istringstream iss;
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time1 = __gnu_test::test_tm(0);
// basic construction
locale loc_c = locale::classic();
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
const locale loc_c = locale::classic();
const string x(50, 'x'); // have to have allocated string!
string res;
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+ const tm time_sanity = __gnu_test::test_tm(1);
ostringstream oss;
oss.imbue(locale(loc_c, new time_put_type));
// 2004-08-25 Paolo Carlini <pcarlini@suse.de>
-// Copyright (C) 2004, 2005 Free Software Foundation
+// Copyright (C) 2004, 2005, 2006 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
bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time1 = __gnu_test::test_tm(0);
// basic construction
locale loc_c = locale::classic();
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
bool test __attribute__((unused)) = true;
// create "C" time object
- tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time1 = __gnu_test::test_tm(0);
// basic construction and sanity check
locale loc_c = locale::classic();
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time1 = __gnu_test::test_tm(0);
// basic construction and sanity check.
locale loc_c = locale::classic();
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time1 = __gnu_test::test_tm(0);
// basic construction and sanity check
locale loc_c = locale::classic();
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time1 = __gnu_test::test_tm(0);
const char* date = "%A, the second of %B";
const char* date_ex = "%Ex";
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time1 = __gnu_test::test_tm(0);
const char* date = "%A, the second of %B";
const char* date_ex = "%Ex";
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time1 = __gnu_test::test_tm(0);
const char* date = "%A, the second of %B";
const char* date_ex = "%Ex";
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time1 = __gnu_test::test_tm(0);
const char* date = "%A, the second of %B";
const char* date_ex = "%Ex";
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
const locale loc_c = locale::classic();
const string x(50, 'x'); // have to have allocated string!
string res;
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+ const tm time_sanity = __gnu_test::test_tm(1);
const char* date = "%X, %A, the second of %B, %Y";
ostringstream oss;
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time1 = __gnu_test::test_tm(0);
// basic construction
locale loc_c = locale::classic();
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
const locale loc_c = locale::classic();
const wstring x(50, 'x'); // have to have allocated wstring!
wstring res;
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+ const tm time_sanity = __gnu_test::test_tm(1);
wostringstream oss;
oss.imbue(locale(loc_c, new time_put_type));
// 2004-08-25 Paolo Carlini <pcarlini@suse.de>
-// Copyright (C) 2004, 2005 Free Software Foundation
+// Copyright (C) 2004, 2005, 2006 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
bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time1 = __gnu_test::test_tm(0);
// basic construction
locale loc_c = locale::classic();
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time1 = __gnu_test::test_tm(0);
// basic construction and sanity check
locale loc_c = locale::classic();
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time1 = __gnu_test::test_tm(0);
// basic construction and sanity check
locale loc_c = locale::classic();
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time1 = __gnu_test::test_tm(0);
// basic construction and sanity check
locale loc_c = locale::classic();
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time1 = __gnu_test::test_tm(0);
const wchar_t* date = L"%A, the second of %B";
const wchar_t* date_ex = L"%Ex";
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time1 = __gnu_test::test_tm(0);
const wchar_t* date = L"%A, the second of %B";
const wchar_t* date_ex = L"%Ex";
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time1 = __gnu_test::test_tm(0);
const wchar_t* date = L"%A, the second of %B";
const wchar_t* date_ex = L"%Ex";
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
bool test __attribute__((unused)) = true;
// create "C" time objects
- tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
+ const tm time1 = __gnu_test::test_tm(0);
const wchar_t* date = L"%A, the second of %B";
const wchar_t* date_ex = L"%Ex";
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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
const locale loc_c = locale::classic();
const wstring x(50, L'x'); // have to have allocated wstring!
wstring res;
- const tm time_sanity = { 0, 0, 12, 26, 5, 97, 2 };
+ const tm time_sanity = __gnu_test::test_tm(1);
const wchar_t* date = L"%X, %A, the second of %B, %Y";
wostringstream oss;
std::__throw_runtime_error("could not wait for semaphore");
#endif
}
+
+ // For use in 22_locale/time_get and time_put.
+ tm
+ test_tm(unsigned index)
+ {
+ const int data[5][9] = { { 0, 0, 12, 4, 3, 71, 0, 93, 0 },
+ { 0, 0, 12, 26, 5, 97, 2, 0, 0 },
+ { 0, 0, 12, 2, 9, 103, 4, 274, -1 },
+ { 0, 0, 12, 26, 9, 103, 0, 298, -1 },
+ { 60, 0, 12, 4, 3, 71, 0, 93, 0 } };
+
+ static tm tmp;
+ tmp.tm_sec = data[index][0];
+ tmp.tm_min = data[index][1];
+ tmp.tm_hour = data[index][2];
+ tmp.tm_mday = data[index][3];
+ tmp.tm_mon = data[index][4];
+ tmp.tm_year = data[index][5];
+ tmp.tm_wday = data[index][6];
+ tmp.tm_yday = data[index][7];
+ tmp.tm_isdst = data[index][8];
+ return tmp;
+ }
}; // namespace __gnu_test
pid_t pid_;
};
+
+ // For use in 22_locale/time_get and time_put.
+ tm test_tm(unsigned);
+
} // namespace __gnu_test
#endif // _GLIBCXX_TESTSUITE_HOOKS_H