2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 %s -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>;
|
|
|
|
|
|
|
|
|
2010-08-13 07:36:15 +08:00
|
|
|
// CHECK: @_ZTV1B = weak_odr constant
|
2010-08-03 15:24:12 +08:00
|
|
|
// CHECK: @_ZTV1AIlE = weak_odr constant
|
|
|
|
// CHECK: @_ZTV1AIsE = weak_odr constant
|
2010-08-06 04:39:18 +08:00
|
|
|
// CHECK: @_ZTV1AIiE = weak_odr constant
|