2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb3.C
blobb7487e97ba5b63a7c753db7194de9e004563ffd5
1 // { dg-do assemble  }
2 #include <complex>
3 template<class T>
4 class Vec {
5 public:
6     Vec() { data = new T; }
7     Vec<T> split() { Vec<T> tmp; operator=(tmp); return tmp; }
8     void operator=(const Vec<T> &v) { data = new T; }
9     T *data;
11 template class Vec<std::complex<double> >;