OSDN Git Service

2003-11-14 Paolo Carlini <pcarlini@suse.de>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Nov 2003 11:52:46 +0000 (11:52 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Nov 2003 11:52:46 +0000 (11:52 +0000)
* testsuite/22_locale/locale/cons/12352.cc: Use
__gnu_test::try_named_locale.

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

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/22_locale/locale/cons/12352.cc

index 54c1bed..d3f91a6 100644 (file)
@@ -1,5 +1,10 @@
 2003-11-14  Paolo Carlini  <pcarlini@suse.de>
 
+       * testsuite/22_locale/locale/cons/12352.cc: Use
+       __gnu_test::try_named_locale.
+
+2003-11-14  Paolo Carlini  <pcarlini@suse.de>
+
        * docs/html/ext/howto.html: Add entries for DR 63, 75
        and 305; tweak entries for DR 60 and 328.
 
index 06e7e0d..b58f61b 100644 (file)
@@ -22,6 +22,7 @@
 #include <locale>
 #include <cstdlib>
 #include <cstring>
+#include <testsuite_hooks.h>
 
 int times_to_fail = 0;
 
@@ -100,7 +101,7 @@ void test01(int iters)
          times_to_fail = i;
          try
            {
-             std::locale loc1("");
+             std::locale loc1 = __gnu_test::try_named_locale("");
              std::locale loc2(loc1, std::locale::classic(),
                               std::locale::numeric);
            }