stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r557067 - /incubator/stdcxx/trunk/tests/localization/22.locale.cons.stdcxx-485.cpp
Date Tue, 17 Jul 2007 21:43:03 GMT
Author: sebor
Date: Tue Jul 17 14:43:02 2007
New Revision: 557067

URL: http://svn.apache.org/viewvc?view=rev&rev=557067
Log:
2007-07-17  Martin Sebor  <sebor@roguewave.com>

	* 22.locale.cons.stdcxx-485.cpp: New regression test for STDCXX-485.

Added:
    incubator/stdcxx/trunk/tests/localization/22.locale.cons.stdcxx-485.cpp   (with props)

Added: incubator/stdcxx/trunk/tests/localization/22.locale.cons.stdcxx-485.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/localization/22.locale.cons.stdcxx-485.cpp?view=auto&rev=557067
==============================================================================
--- incubator/stdcxx/trunk/tests/localization/22.locale.cons.stdcxx-485.cpp (added)
+++ incubator/stdcxx/trunk/tests/localization/22.locale.cons.stdcxx-485.cpp Tue Jul 17 14:43:02
2007
@@ -0,0 +1,15 @@
+#include <cassert>
+#include <locale>
+
+int main (int argc, char *argv[])
+{
+    for (int j = 0; j != 2; ++j) {
+        std::locale locales [64];
+
+        for (int i = 1; i < argc; ++i)
+            locales [i] = std::locale (argv [i]);
+
+        for (int i = 1; i < argc; ++i)
+            assert (std::has_facet<std::collate<char> >(locales [i]));
+    }
+}

Propchange: incubator/stdcxx/trunk/tests/localization/22.locale.cons.stdcxx-485.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/stdcxx/trunk/tests/localization/22.locale.cons.stdcxx-485.cpp
------------------------------------------------------------------------------
    svn:keywords = Id



Mime
View raw message