2014-01-15 03:35:09 +08:00
|
|
|
// RUN: %clang_cc1 %s -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s
|
2009-12-05 12:55:55 +08:00
|
|
|
|
|
|
|
template<class T> class A {
|
2010-04-10 03:03:51 +08:00
|
|
|
public:
|
2009-12-05 12:55:55 +08:00
|
|
|
A() {}
|
|
|
|
virtual void a() {}
|
|
|
|
};
|
|
|
|
class B : A<int> {
|
|
|
|
B();
|
|
|
|
};
|
|
|
|
B::B() {}
|
|
|
|
|
2010-08-03 15:24:12 +08:00
|
|
|
template class A<long>;
|
|
|
|
|
|
|
|
extern template class A<short>;
|
|
|
|
template class A<short>;
|
|
|
|
|
|
|
|
|
2011-01-24 08:46:19 +08:00
|
|
|
// CHECK: @_ZTV1B = linkonce_odr unnamed_addr constant
|
2011-01-12 05:10:26 +08:00
|
|
|
// CHECK: @_ZTV1AIlE = weak_odr unnamed_addr constant
|
|
|
|
// CHECK: @_ZTV1AIsE = weak_odr unnamed_addr constant
|
2011-01-24 08:46:19 +08:00
|
|
|
// CHECK: @_ZTV1AIiE = linkonce_odr unnamed_addr constant
|
2012-07-07 14:59:51 +08:00
|
|
|
|
|
|
|
template<class T> struct C {
|
|
|
|
virtual void c() {}
|
|
|
|
};
|
|
|
|
struct D : C<int> {
|
|
|
|
virtual void d();
|
|
|
|
};
|
|
|
|
void D::d() {}
|
|
|
|
|
|
|
|
// CHECK: define {{.*}}@_ZN1CIiE1cEv(
|