1219820Sjeff// 2003-03-26 B enjamin Kosnik  <bkoz@redhat.com>
2219820Sjeff
3219820Sjeff// Copyright (C) 2003 Free Software Foundation, Inc.
4219820Sjeff//
5219820Sjeff// This file is part of the GNU ISO C++ Library.  This library is free
6219820Sjeff// software; you can redistribute it and/or modify it under the
7219820Sjeff// terms of the GNU General Public License as published by the
8219820Sjeff// Free Software Foundation; either version 2, or (at your option)
9219820Sjeff// any later version.
10219820Sjeff
11219820Sjeff// This library is distributed in the hope that it will be useful,
12219820Sjeff// but WITHOUT ANY WARRANTY; without even the implied warranty of
13219820Sjeff// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14219820Sjeff// GNU General Public License for more details.
15219820Sjeff
16219820Sjeff// You should have received a copy of the GNU General Public License along
17219820Sjeff// with this library; see the file COPYING.  If not, write to the Free
18219820Sjeff// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19219820Sjeff// USA.
20219820Sjeff
21219820Sjeff// 27.8.1.1 - Template class basic_filebuf
22219820Sjeff
23219820Sjeff#include <iostream>
24219820Sjeff#include <sstream>
25219820Sjeff
26219820Sjeffvoid test01()
27219820Sjeff{
28219820Sjeff  // Check for required base class.
29219820Sjeff  typedef std::iostream test_type;
30219820Sjeff  typedef std::istream base_type1;
31219820Sjeff  typedef std::ostream base_type2;
32219820Sjeff
33219820Sjeff  std::stringbuf buf;
34219820Sjeff  const test_type& obj = *new test_type(&buf);
35219820Sjeff  const base_type1* base1 __attribute__((unused)) = &obj;
36219820Sjeff  const base_type2* base2 __attribute__((unused)) = &obj;
37219820Sjeff}
38219820Sjeff
39219820Sjeffint main()
40219820Sjeff{
41219820Sjeff  test01();
42219820Sjeff  return 0;
43}
44
45// more surf!!!
46
47
48
49
50
51
52
53
54
55