diff options
author | Paolo Carlini <pcarlini@suse.de> | 2006-03-08 09:44:56 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2006-03-08 09:44:56 +0000 |
commit | 634a11f7bf6f032aa190aa5355a1d4eea710dc28 (patch) | |
tree | 56c888c4772f2f5c4d05cb4eeb262cb63f3ffb0e /libstdc++-v3/testsuite/27_io/objects/wchar_t/dr455.cc | |
parent | 50d5ff7d8f100436b3646ca1a81ca9ebfa9944d3 (diff) | |
download | gcc-634a11f7bf6f032aa190aa5355a1d4eea710dc28.tar.gz |
Implement the resolution of DR 455, [DR].
2006-03-08 Paolo Carlini <pcarlini@suse.de>
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
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/objects/wchar_t/dr455.cc')
-rw-r--r-- | libstdc++-v3/testsuite/27_io/objects/wchar_t/dr455.cc | 37 |
1 files changed, 37 insertions, 0 deletions
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 <pcarlini@suse.de> + +// 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 <iostream> +#include <testsuite_hooks.h> + +// 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; +} |