summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/virt-template-vtable.cpp
blob: 3fbdd2d9cde00d9ede814464ebf97f107f13f38f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: clang-cc %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