re PR libstdc++/6795 (stringbuf failure)

2002-05-27  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/6795.
	* config/os/solaris/solaris2.6/bits/ctype_noninline.h
	(classic_table): Fix.
	* config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.

2002-05-27  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/22_locale/ctype_is_wchar_t.cc: Guard with
	_GLIBCPP_USE_WCHAR_T.
	* testsuite/22_locale/ctype_narrow_wchar_t.cc: Same.
	* testsuite/22_locale/ctype_to_wchar_t.cc: Same.
	* testsuite/22_locale/ctype_widen_wchar_t.cc: Same.

From-SVN: r53921
This commit is contained in:
Benjamin Kosnik 2002-05-27 11:42:59 +00:00 committed by Benjamin Kosnik
parent 5149f0701c
commit bed1bd8c51
7 changed files with 34 additions and 3 deletions

View File

@ -1,3 +1,18 @@
2002-05-27 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/6795.
* config/os/solaris/solaris2.6/bits/ctype_noninline.h
(classic_table): Fix.
* config/os/solaris/solaris2.5/bits/ctype_noninline.h: Same.
2002-05-27 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/22_locale/ctype_is_wchar_t.cc: Guard with
_GLIBCPP_USE_WCHAR_T.
* testsuite/22_locale/ctype_narrow_wchar_t.cc: Same.
* testsuite/22_locale/ctype_to_wchar_t.cc: Same.
* testsuite/22_locale/ctype_widen_wchar_t.cc: Same.
2002-05-26 Carlo Wood <carlo@alinoe.com>
Paolo Carlini <pcarlini@unitus.it>

View File

@ -35,7 +35,7 @@
const ctype_base::mask*
ctype<char>::classic_table() throw()
{ return 0; }
{ return __ctype; }
ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
size_t __refs)

View File

@ -35,7 +35,7 @@
const ctype_base::mask*
ctype<char>::classic_table() throw()
{ return 0; }
{ return __ctype_mask; }
ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
size_t __refs)

View File

@ -34,6 +34,7 @@
// XXX This test (test02) is not working for non-glibc locale models.
// { dg-do run { xfail *-*-* } }
#ifdef _GLIBCPP_USE_WCHAR_T
typedef wchar_t char_type;
class gnu_ctype: public std::ctype<char_type> { };
@ -183,11 +184,14 @@ void test05()
VERIFY( preLANG == postLANG );
}
}
#endif
int main()
{
#ifdef _GLIBCPP_USE_WCHAR_T
test01();
test04();
test05();
#endif
return 0;
}

View File

@ -33,6 +33,7 @@
#include <vector>
#include <testsuite_hooks.h>
#ifdef _GLIBCPP_USE_WCHAR_T
// libstdc++/6701
void test01()
{
@ -94,10 +95,13 @@ void test02()
for (int i = 0; i < wide.length(); ++i)
VERIFY( narrow_chars[i] == narrow[i] );
}
#endif
int main()
{
#ifdef _GLIBCPP_USE_WCHAR_T
test01();
test02();
return 0;
#endif
return 0;
}

View File

@ -30,6 +30,7 @@
#include <locale>
#include <testsuite_hooks.h>
#ifdef _GLIBCPP_USE_WCHAR_T
typedef wchar_t char_type;
class gnu_ctype: public std::ctype<char_type> { };
@ -130,11 +131,14 @@ void test05()
VERIFY( preLANG == postLANG );
}
}
#endif
int main()
{
#ifdef _GLIBCPP_USE_WCHAR_T
test01();
test04();
test05();
#endif
return 0;
}

View File

@ -33,6 +33,7 @@
#include <vector>
#include <testsuite_hooks.h>
#ifdef _GLIBCPP_USE_WCHAR_T
void test01()
{
using namespace std;
@ -59,9 +60,12 @@ void test01()
for (int i = 0; i < narrow.length(); ++i)
VERIFY( wide_chars[i] == wide[i] );
}
#endif
int main()
{
#ifdef _GLIBCPP_USE_WCHAR_T
test01();
#endif
return 0;
}