From 634a11f7bf6f032aa190aa5355a1d4eea710dc28 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 8 Mar 2006 09:44:56 +0000 Subject: Implement the resolution of DR 455, [DR]. 2006-03-08 Paolo Carlini Implement the resolution of DR 455, [DR]. * src/ios_init.cc (ios_base::Init::Init()): Do it. * testsuite/27_io/objects/char/dr455.cc: New. * testsuite/27_io/objects/wchar_t/dr455.cc: Likewise. * docs/html/ext/howto.html: Add an entry for DR 455. From-SVN: r111842 --- .../testsuite/27_io/objects/wchar_t/dr455.cc | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 libstdc++-v3/testsuite/27_io/objects/wchar_t/dr455.cc (limited to 'libstdc++-v3/testsuite/27_io/objects/wchar_t/dr455.cc') diff --git a/libstdc++-v3/testsuite/27_io/objects/wchar_t/dr455.cc b/libstdc++-v3/testsuite/27_io/objects/wchar_t/dr455.cc new file mode 100644 index 00000000000..ab8abf32008 --- /dev/null +++ b/libstdc++-v3/testsuite/27_io/objects/wchar_t/dr455.cc @@ -0,0 +1,37 @@ +// 2006-03-08 Paolo Carlini + +// Copyright (C) 2006 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 +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 2, or (at your option) +// any later version. + +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License along +// with this library; see the file COPYING. If not, write to the Free +// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +// USA. + +#include +#include + +// DR 455. cerr::tie() and wcerr::tie() are overspecified. +void test01() +{ + bool test __attribute__((unused)) = true; + + VERIFY( std::wcerr.tie() == &std::wcout ); +} + +int +main() +{ + test01(); + return 0; +} -- cgit v1.2.1