diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-24 23:17:13 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-24 23:17:13 +0000 |
commit | 47e29ea81fc1cc5bb204370e3c3e1695dbea1e59 (patch) | |
tree | 466026623d21d56461f56750618841475f84f437 | |
parent | 20d06a9c8ebc95d55777d7f5ab03b6ca64a28a22 (diff) | |
download | gcc-47e29ea81fc1cc5bb204370e3c3e1695dbea1e59.tar.gz |
2002-07-24 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/7219
* testsuite/27_io/ios_base_type.cc: New.
* include/bits/ios_base.h (ios_base::streampos): Add.
(ios_base::streamoff): Add.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55726 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libstdc++-v3/ChangeLog | 7 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/ios_base.h | 3 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/27_io/ios_base_type.cc | 39 |
3 files changed, 49 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 801925ad42d..797ceb2db3a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,12 @@ 2002-07-24 Benjamin Kosnik <bkoz@redhat.com> + PR libstdc++/7219 + * testsuite/27_io/ios_base_type.cc: New. + * include/bits/ios_base.h (ios_base::streampos): Add. + (ios_base::streamoff): Add. + +2002-07-24 Benjamin Kosnik <bkoz@redhat.com> + PR libstdc++/7286 * libsupc++/new: Add placement delete. * testsuite/18_support/new_delete_placement.cc: New. diff --git a/libstdc++-v3/include/bits/ios_base.h b/libstdc++-v3/include/bits/ios_base.h index 83037047f6f..c7c17cc6ea6 100644 --- a/libstdc++-v3/include/bits/ios_base.h +++ b/libstdc++-v3/include/bits/ios_base.h @@ -221,6 +221,9 @@ namespace std typedef int io_state; typedef int open_mode; typedef int seek_dir; + + typedef std::streampos streampos; + typedef std::streamoff streamoff; #endif // Callbacks; diff --git a/libstdc++-v3/testsuite/27_io/ios_base_type.cc b/libstdc++-v3/testsuite/27_io/ios_base_type.cc new file mode 100644 index 00000000000..73d92c6e345 --- /dev/null +++ b/libstdc++-v3/testsuite/27_io/ios_base_type.cc @@ -0,0 +1,39 @@ +// Copyright (C) 2002 Free Software Foundation +// +// 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, 59 Temple Place - Suite 330, Boston, MA 02111-1307, +// USA. + +// 27.4.2.1 - Types [lib.ios.types] + +#include <ios> + +#include <testsuite_hooks.h> + +// libstdc++/7219 +// Annex D, deprecated. +void test01() +{ +#if _GLIBCPP_DEPRECATED + std::ios_base::streampos spos; + std::ios_base::streamoff soff; +#endif +} + +int main(void) +{ + test01(); + return 0; +} |