blob: 49807e99f08f39eeba001dfd2eacb8c85e177b3f [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O" } */
class ios_base {
public:
virtual ~ios_base();
};
template<typename _CharT>
class basic_ostream : virtual public ios_base {
public:
virtual ~basic_ostream() { }
};
extern template class basic_ostream<char>;
template <typename _CharT>
class basic_ostringstream : public basic_ostream<_CharT> { };
template class basic_ostringstream<char>;