repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eb3.C
blob
b7487e97ba5b63a7c753db7194de9e004563ffd5
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> >;