aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2006-03-08 09:44:56 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2006-03-08 09:44:56 +0000
commit634a11f7bf6f032aa190aa5355a1d4eea710dc28 (patch)
tree56c888c4772f2f5c4d05cb4eeb262cb63f3ffb0e /libstdc++-v3/testsuite
parent50d5ff7d8f100436b3646ca1a81ca9ebfa9944d3 (diff)
downloadgcc-634a11f7bf6f032aa190aa5355a1d4eea710dc28.zip
gcc-634a11f7bf6f032aa190aa5355a1d4eea710dc28.tar.gz
gcc-634a11f7bf6f032aa190aa5355a1d4eea710dc28.tar.bz2
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')
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/char/dr455.cc37
-rw-r--r--libstdc++-v3/testsuite/27_io/objects/wchar_t/dr455.cc37
2 files changed, 74 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/27_io/objects/char/dr455.cc b/libstdc++-v3/testsuite/27_io/objects/char/dr455.cc
new file mode 100644
index 0000000..2cfbb32
--- /dev/null
+++ b/libstdc++-v3/testsuite/27_io/objects/char/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::cerr.tie() == &std::cout );
+}
+
+int
+main()
+{
+ test01();
+ return 0;
+}
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 0000000..ab8abf3
--- /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;
+}