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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
template31.C
blob
2cab859afc69d721dae301358b100f6bd7de53d2
1
// { dg-do run }
2
// PRMS Id: 8569
3
4
#include <iostream>
5
#include <vector>
6
7
using std::vector;
8
9
class Component {
10
int george;
11
char mabel[128];
12
};
13
class CopyMe {
14
public:
15
CopyMe(){;}
16
private:
17
vector<Component> strvec;
18
};
19
20
class IncludeIt {
21
public:
22
IncludeIt() {}
23
~IncludeIt() {}
24
IncludeIt(const IncludeIt& i) {
25
myStrvec = i.myStrvec;
26
}
27
IncludeIt& operator=(const IncludeIt& i) {
28
myStrvec = i.myStrvec;
29
return *this;
30
}
31
private:
32
CopyMe myStrvec;
33
};
34
35
int main(int argc, char**argv) {
36
IncludeIt foo;
37
IncludeIt* bar;
38
std::exit(0);
39
}