aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/22_locale/time_put_members_wchar_t.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/testsuite/22_locale/time_put_members_wchar_t.cc')
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put_members_wchar_t.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/22_locale/time_put_members_wchar_t.cc b/libstdc++-v3/testsuite/22_locale/time_put_members_wchar_t.cc
index a2bfd7d3d1a..347f41f526e 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put_members_wchar_t.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put_members_wchar_t.cc
@@ -251,6 +251,22 @@ void test03()
}
#endif
}
+
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test04()
+{
+ bool test = true;
+
+ const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ test02();
+ std::string postLANG = std::setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
#endif
int main()
@@ -259,6 +275,7 @@ int main()
test01();
test02();
test03();
+ test04();
#endif
return 0;
}