1258945Sroberto// { dg-do compile }
2285612Sdelphij// 2003-03-26 B enjamin Kosnik  <bkoz@redhat.com>
3258945Sroberto
4258945Sroberto// Copyright (C) 2003, 2009 Free Software Foundation, Inc.
5258945Sroberto//
6280849Scy// This file is part of the GNU ISO C++ Library.  This library is free
7280849Scy// software; you can redistribute it and/or modify it under the
8258945Sroberto// terms of the GNU General Public License as published by the
9258945Sroberto// Free Software Foundation; either version 3, or (at your option)
10258945Sroberto// any later version.
11258945Sroberto
12258945Sroberto// This library is distributed in the hope that it will be useful,
13280849Scy// but WITHOUT ANY WARRANTY; without even the implied warranty of
14258945Sroberto// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15280849Scy// GNU General Public License for more details.
16258945Sroberto
17258945Sroberto// You should have received a copy of the GNU General Public License along
18258945Sroberto// with this library; see the file COPYING3.  If not see
19258945Sroberto// <http://www.gnu.org/licenses/>.
20258945Sroberto
21258945Sroberto// 27.8.1.1 - Template class basic_filebuf
22258945Sroberto
23258945Sroberto#include <iostream>
24258945Sroberto#include <sstream>
25258945Sroberto
26258945Srobertovoid test01()
27258945Sroberto{
28258945Sroberto  // Check for required base class.
29258945Sroberto  typedef std::iostream test_type;
30258945Sroberto  typedef std::istream base_type1;
31258945Sroberto  typedef std::ostream base_type2;
32258945Sroberto
33258945Sroberto  std::stringbuf buf;
34280849Scy  const test_type& obj = *new test_type(&buf);
35258945Sroberto  const base_type1* base1 __attribute__((unused)) = &obj;
36258945Sroberto  const base_type2* base2 __attribute__((unused)) = &obj;
37258945Sroberto}
38258945Sroberto
39258945Sroberto// more surf!!!
40258945Sroberto
41258945Sroberto
42258945Sroberto
43258945Sroberto
44258945Sroberto
45258945Sroberto
46258945Sroberto
47258945Sroberto
48258945Sroberto
49258945Sroberto