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