aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb3.C
blob: ccf6027102a6c829e489ae6c1d5575e033586ac2 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Build don't link:
#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> >;