re PR libstdc++/7219 (_GLIBCPP_DEPRECATED on (ios_base::streamoff and ios_base::streampos types))

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.

From-SVN: r55726
This commit is contained in:
Benjamin Kosnik 2002-07-24 23:17:13 +00:00 committed by Benjamin Kosnik
parent 3cfab7ec18
commit 922045978d
3 changed files with 49 additions and 0 deletions

View file

@ -1,3 +1,10 @@
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

View file

@ -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;

View file

@ -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;
}