18012Sjulian// 2002-07-25 Benjamin Kosnik <bkoz@redhat.com> 212090Sgibbs 38012Sjulian// Copyright (C) 2002, 2004 Free Software Foundation, Inc. 415329Sgibbs// 512090Sgibbs// This file is part of the GNU ISO C++ Library. This library is free 615329Sgibbs// software; you can redistribute it and/or modify it under the 712090Sgibbs// terms of the GNU General Public License as published by the 812090Sgibbs// Free Software Foundation; either version 2, or (at your option) 912090Sgibbs// any later version. 1012090Sgibbs 1112090Sgibbs// This library is distributed in the hope that it will be useful, 1212090Sgibbs// but WITHOUT ANY WARRANTY; without even the implied warranty of 1312090Sgibbs// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1412090Sgibbs// GNU General Public License for more details. 1512090Sgibbs 1615329Sgibbs// You should have received a copy of the GNU General Public License along 1715329Sgibbs// with this library; see the file COPYING. If not, write to the Free 188012Sjulian// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 1915329Sgibbs// USA. 2015329Sgibbs 2115329Sgibbs// As a special exception, you may use this file as part of a free software 2215329Sgibbs// library without restriction. Specifically, if other files instantiate 2315329Sgibbs// templates or use macros or inline functions from this file, or you compile 2415329Sgibbs// this file and link it with other files to produce an executable, this 2515329Sgibbs// file does not by itself cause the resulting executable to be covered by 2615329Sgibbs// the GNU General Public License. This exception does not however 2715329Sgibbs// invalidate any other reasons why the executable file might be covered by 2815329Sgibbs// the GNU General Public License. 2915329Sgibbs 3015329Sgibbs// 27.8.1.8 - Template class basic_ofstream 3150477Speter// NB: This file is for testing basic_ofstream with NO OTHER INCLUDES. 328012Sjulian 338012Sjulian#include <fstream> 34130274Simp 35130274Simp// { dg-do compile } 368012Sjulian 37130274Simpnamespace std 3813691Sgibbs{ 3912090Sgibbs typedef short type_t; 4012122Sgibbs template class basic_ifstream<type_t, char_traits<type_t> >; 4112122Sgibbs} // test 4212122Sgibbs