]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/objects/wchar_t/11.cc
testsuite_hooks.cc: Remove try_named_locale.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / objects / wchar_t / 11.cc
index 576b6107882fcf4723aa19117a2eeee7a014c506..bcefabf49f7141cd3ec13422c60f0602fcd7ffe5 100644 (file)
@@ -1,6 +1,8 @@
+// { dg-require-namedlocale "" }
+
 // 2003-05-01  Petur Runolfsson  <peturr02@ru.is>
 
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -30,7 +32,7 @@ void test11()
   bool test __attribute__((unused)) = true;
   const char* name = "tmp_11";
 
-  locale loc(__gnu_test::try_named_locale("se_NO.UTF-8"));
+  locale loc(locale("se_NO.UTF-8"));
   locale::global(loc);
   wcin.imbue(loc);
   wcout.imbue(loc);