OSDN Git Service

2003-04-14 Andreas Tobler <toa@pop.agri.ch>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / 22_locale / numpunct / members / char / 1.cc
index aba34e2..023c64f 100644 (file)
@@ -31,9 +31,9 @@ void test01()
 
   // basic construction
   locale loc_c = locale::classic();
-  locale loc_us("en_US");
-  locale loc_fr("fr_FR");
-  locale loc_de("de_DE");
+  locale loc_us = __gnu_cxx_test::try_named_locale("en_US");
+  locale loc_fr = __gnu_cxx_test::try_named_locale("fr_FR");
+  locale loc_de = __gnu_cxx_test::try_named_locale("de_DE");
   VERIFY( loc_c != loc_de );
   VERIFY( loc_us != loc_fr );
   VERIFY( loc_us != loc_de );
@@ -60,6 +60,6 @@ void test01()
 
 int main()
 {
-  __gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher(test01);
+  test01();
   return 0;
 }