mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-26 14:58:59 -04:00

a -cc1 option. The Darwin linker complains about mixed visibility when linking gcc-built objects with clang-built objects, and the optimization isn't really that valuable. Platforms with less ornery linkers can feel free to enable this. llvm-svn: 110979
23 lines
409 B
C++
23 lines
409 B
C++
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
|
|
|
|
template<class T> class A {
|
|
public:
|
|
A() {}
|
|
virtual void a() {}
|
|
};
|
|
class B : A<int> {
|
|
B();
|
|
};
|
|
B::B() {}
|
|
|
|
template class A<long>;
|
|
|
|
extern template class A<short>;
|
|
template class A<short>;
|
|
|
|
|
|
// CHECK: @_ZTV1B = weak_odr constant
|
|
// CHECK: @_ZTV1AIlE = weak_odr constant
|
|
// CHECK: @_ZTV1AIsE = weak_odr constant
|
|
// CHECK: @_ZTV1AIiE = weak_odr constant
|