-// { dg-require-namedlocale "en_US.ISO-8859-1" }
+// { dg-require-namedlocale "en_US.ISO8859-1" }
// 2003-02-06 Petur Runolfsson <peturr02@ru.is>
-// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009 Free Software Foundation
+// Copyright (C) 2003-2023 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
typedef codecvt<wchar_t, char, mbstate_t> w_codecvt;
typedef char ext_type;
- bool test __attribute__((unused)) = true;
const ext_type* e_lit =
"\x1\x2\x3\x4\x5\x6\x7\x8\x9\xa\xb\xc\xd\xe\xf\x10\x11\x12\x13"
"\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20!\"#$%&"
"\xff";
int size = strlen(e_lit);
- locale loc = locale("en_US.ISO-8859-1");
+ locale loc = locale(ISO_8859(1,en_US));
locale::global(loc);
const w_codecvt* cvt = &use_facet<w_codecvt>(loc);