2001-09-14 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Sep 2001 22:13:11 +0000 (22:13 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Sep 2001 22:13:11 +0000 (22:13 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45615 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/testsuite/22_locale/money_get_members_wchar_t.cc

index 5062e01..da8fdfd 100644 (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;
 }