mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-02 16:23:56 +08:00
12352.cc: Use __gnu_test::try_named_locale.
2003-11-14 Paolo Carlini <pcarlini@suse.de> * testsuite/22_locale/locale/cons/12352.cc: Use __gnu_test::try_named_locale. From-SVN: r73602
This commit is contained in:
parent
262cc585e4
commit
38455b2b8b
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user