blob: 81d696f2f0971b68e86209c65b5d945fddfb2249 [file] [log] [blame]
// { 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);
}