]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc
testsuite_hooks.cc: Remove try_named_locale.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / ext / stdio_sync_filebuf / wchar_t / 12077.cc
index 158287faaa84f54b6a91360d761627a81c74e1f6..d174827bdc5858c42a1b4f3a245742107cf48bee 100644 (file)
@@ -1,4 +1,6 @@
-// Copyright (C) 2004 Free Software Foundation
+// { dg-require-namedlocale "" }
+
+// Copyright (C) 2004, 2005 Free Software Foundation
 //
 // 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
@@ -28,7 +30,7 @@ void test01()
 
   const char* name = "tmp_12077";
 
-  locale loc = __gnu_test::try_named_locale("is_IS.UTF-8");
+  locale loc = locale("is_IS.UTF-8");
   locale::global(loc);
   wcin.imbue(loc);