summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb3.C
blob: b7487e97ba5b63a7c753db7194de9e004563ffd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
#include <complex>
template<class T>
class Vec {
public:
    Vec() { data = new T; }
    Vec<T> split() { Vec<T> tmp; operator=(tmp); return tmp; }
    void operator=(const Vec<T> &v) { data = new T; }
    T *data;
};
template class Vec<std::complex<double> >;