blob: 81d696f2f0971b68e86209c65b5d945fddfb2249 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// { dg-do run }
// PRMS Id: 8569
#include <iostream>
#include <vector>
#include <cstdlib>
using std::vector;
class Component {
int george;
char mabel[128];
};
class CopyMe {
public:
CopyMe(){;}
private:
vector<Component> strvec;
};
class IncludeIt {
public:
IncludeIt() {}
~IncludeIt() {}
IncludeIt(const IncludeIt& i) {
myStrvec = i.myStrvec;
}
IncludeIt& operator=(const IncludeIt& i) {
myStrvec = i.myStrvec;
return *this;
}
private:
CopyMe myStrvec;
};
int main(int argc, char**argv) {
IncludeIt foo;
IncludeIt* bar;
std::exit(0);
}
|