aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/rtti/crash4.C
blob: 49807e99f08f39eeba001dfd2eacb8c85e177b3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { 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>;