Commit bed1bd8c by Benjamin Kosnik Committed by Benjamin Kosnik

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
parent 5149f070
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> 2002-05-26 Carlo Wood <carlo@alinoe.com>
Paolo Carlini <pcarlini@unitus.it> Paolo Carlini <pcarlini@unitus.it>
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
const ctype_base::mask* const ctype_base::mask*
ctype<char>::classic_table() throw() ctype<char>::classic_table() throw()
{ return 0; } { return __ctype; }
ctype<char>::ctype(__c_locale, const mask* __table, bool __del, ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
size_t __refs) size_t __refs)
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
const ctype_base::mask* const ctype_base::mask*
ctype<char>::classic_table() throw() ctype<char>::classic_table() throw()
{ return 0; } { return __ctype_mask; }
ctype<char>::ctype(__c_locale, const mask* __table, bool __del, ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
size_t __refs) size_t __refs)
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
// XXX This test (test02) is not working for non-glibc locale models. // XXX This test (test02) is not working for non-glibc locale models.
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
#ifdef _GLIBCPP_USE_WCHAR_T
typedef wchar_t char_type; typedef wchar_t char_type;
class gnu_ctype: public std::ctype<char_type> { }; class gnu_ctype: public std::ctype<char_type> { };
...@@ -183,11 +184,14 @@ void test05() ...@@ -183,11 +184,14 @@ void test05()
VERIFY( preLANG == postLANG ); VERIFY( preLANG == postLANG );
} }
} }
#endif
int main() int main()
{ {
#ifdef _GLIBCPP_USE_WCHAR_T
test01(); test01();
test04(); test04();
test05(); test05();
#endif
return 0; return 0;
} }
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <vector> #include <vector>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#ifdef _GLIBCPP_USE_WCHAR_T
// libstdc++/6701 // libstdc++/6701
void test01() void test01()
{ {
...@@ -94,10 +95,13 @@ void test02() ...@@ -94,10 +95,13 @@ void test02()
for (int i = 0; i < wide.length(); ++i) for (int i = 0; i < wide.length(); ++i)
VERIFY( narrow_chars[i] == narrow[i] ); VERIFY( narrow_chars[i] == narrow[i] );
} }
#endif
int main() int main()
{ {
#ifdef _GLIBCPP_USE_WCHAR_T
test01(); test01();
test02(); test02();
return 0; #endif
return 0;
} }
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <locale> #include <locale>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#ifdef _GLIBCPP_USE_WCHAR_T
typedef wchar_t char_type; typedef wchar_t char_type;
class gnu_ctype: public std::ctype<char_type> { }; class gnu_ctype: public std::ctype<char_type> { };
...@@ -130,11 +131,14 @@ void test05() ...@@ -130,11 +131,14 @@ void test05()
VERIFY( preLANG == postLANG ); VERIFY( preLANG == postLANG );
} }
} }
#endif
int main() int main()
{ {
#ifdef _GLIBCPP_USE_WCHAR_T
test01(); test01();
test04(); test04();
test05(); test05();
#endif
return 0; return 0;
} }
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <vector> #include <vector>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#ifdef _GLIBCPP_USE_WCHAR_T
void test01() void test01()
{ {
using namespace std; using namespace std;
...@@ -59,9 +60,12 @@ void test01() ...@@ -59,9 +60,12 @@ void test01()
for (int i = 0; i < narrow.length(); ++i) for (int i = 0; i < narrow.length(); ++i)
VERIFY( wide_chars[i] == wide[i] ); VERIFY( wide_chars[i] == wide[i] );
} }
#endif
int main() int main()
{ {
#ifdef _GLIBCPP_USE_WCHAR_T
test01(); test01();
#endif
return 0; return 0;
} }
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