Commit 9775a638 by Benjamin Kosnik

moneypunct_members_gnu.cc: Fix initialization of wchar_t members.


2001-09-14  Benjamin Kosnik  <bkoz@redhat.com>

	* config/locale/moneypunct_members_gnu.cc: Fix initialization of
	wchar_t members.
	* testsuite/22_locale/money_get_members_wchar_t.cc (test02): New file.
	* testsuite/22_locale/money_put_members_wchar_t.cc (test02): Fix.

From-SVN: r45615
parent 55dea7b1
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
// XXX This test is not working for non-glibc locale models. // XXX This test is not working for non-glibc locale models.
// { dg-do run { xfail *-*-* } } // { dg-do run { xfail *-*-* } }
#ifdef _GLIBCPP_USE_WCHAR_T
// test string version // test string version
void test01() void test01()
{ {
...@@ -183,6 +184,7 @@ void test01() ...@@ -183,6 +184,7 @@ void test01()
VERIFY( err11 == ios_base::goodbit ); VERIFY( err11 == ios_base::goodbit );
} }
// test double/wstring versions // test double/wstring versions
void test02() void test02()
{ {
...@@ -270,10 +272,13 @@ void test02() ...@@ -270,10 +272,13 @@ void test02()
VERIFY( result3 == digits4 ); VERIFY( result3 == digits4 );
VERIFY( err03 == ios_base::goodbit ); VERIFY( err03 == ios_base::goodbit );
} }
#endif
int main() int main()
{ {
#ifdef _GLIBCPP_USE_WCHAR_T
test01(); test01();
test02(); test02();
#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