summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/virt-template-vtable.cpp
blob: 76a1240731b2c554cb596a69ce8aab767c6538a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s

template<class T> class A {
  A() {}
  virtual void a() {}
};
class B : A<int> {
  B();
};
B::B() {}

// CHECK: @_ZTV1AIiE = weak_odr constant
OpenPOWER on IntegriCloud