summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/virt-template-vtable.cpp
blob: b968f38c826364ac5456a7f9398b4a7db7f4e6de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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() {}

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