summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/default-constructor-template-member.cpp
blob: e74fb6da69a6f38ceb1a8383a16ea7391cab0841 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s

template <class T> struct A { A(); };
struct B { A<int> x; };
void a() {   
  B b;
}
// CHECK: call void @_ZN1BC1Ev
// CHECK: define linkonce_odr void @_ZN1BC1Ev
// CHECK: call void @_ZN1AIiEC1Ev
OpenPOWER on IntegriCloud