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
This commit is contained in:
Benjamin Kosnik 2001-09-14 22:13:11 +00:00
parent 55dea7b149
commit 9775a638f4

View File

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