mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-30 15:45:26 +00:00
eb3cd5e822
llvm-svn: 51695
29 lines
357 B
C++
29 lines
357 B
C++
// RUN: %llvmgxx -O3 -S -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>;
|
|
|