2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
|
2009-12-01 06:07:56 +08:00
|
|
|
|
|
|
|
struct basic_ios{~basic_ios(); };
|
|
|
|
|
|
|
|
template<typename _CharT> struct basic_istream : virtual public basic_ios {
|
|
|
|
virtual ~basic_istream(){}
|
|
|
|
};
|
|
|
|
|
|
|
|
template<typename _CharT> struct basic_iostream : public basic_istream<_CharT>
|
|
|
|
{
|
|
|
|
virtual ~basic_iostream(){}
|
|
|
|
};
|
|
|
|
|
|
|
|
basic_iostream<char> res;
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
}
|
|
|
|
|
|
|
|
// CHECK: call void @_ZN9basic_iosD2Ev
|