1 // { dg-require-namedlocale "en_US" }
2 // { dg-require-namedlocale "de_DE" }
6 // Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2009
7 // Free Software Foundation, Inc.
9 // This file is part of the GNU ISO C++ Library. This library is free
10 // software; you can redistribute it and/or modify it under the
11 // terms of the GNU General Public License as published by the
12 // Free Software Foundation; either version 3, or (at your option)
15 // This library is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
20 // You should have received a copy of the GNU General Public License along
21 // with this library; see the file COPYING3. If not see
22 // <http://www.gnu.org/licenses/>.
25 // 27.5.2 template class basic_streambuf
29 #include <testsuite_hooks.h>
31 class testbuf
: public std::wstreambuf
34 typedef std::wstreambuf::traits_type traits_type
;
36 testbuf() : std::wstreambuf() { }
43 bool test
__attribute__((unused
)) = true;
47 VERIFY( ob
.getloc() == loc
);
49 locale::global(locale("en_US"));
50 VERIFY( ob
.getloc() == loc
);
52 locale loc_de
= locale("de_DE");
53 locale ret
= ob
.pubimbue(loc_de
);
54 VERIFY( ob
.getloc() == loc_de
);
58 VERIFY( ob
.getloc() == loc_de
);