Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.old-deja/g++.robertl/eb3.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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; | |
10 }; | |
11 template class Vec<std::complex<double> >; |