1f51a89d39
These were ignored by git accidentally. We want ALL OF THEM since they all came in the llvm/clang source distribution.
28 lines
362 B
C++
28 lines
362 B
C++
// RUN: %clang_cc1 -emit-llvm -o - %s
|
|
|
|
struct A {
|
|
virtual ~A();
|
|
};
|
|
|
|
template <typename Ty>
|
|
struct B : public A {
|
|
~B () { delete [] val; }
|
|
private:
|
|
Ty* val;
|
|
};
|
|
|
|
template <typename Ty>
|
|
struct C : public A {
|
|
C ();
|
|
~C ();
|
|
};
|
|
|
|
template <typename Ty>
|
|
struct D : public A {
|
|
D () {}
|
|
private:
|
|
B<C<Ty> > blocks;
|
|
};
|
|
|
|
template class D<double>;
|