URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [template31.C] - Rev 305
Go to most recent revision | Compare with Previous | Blame | View Log
// { 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);
}
Go to most recent revision | Compare with Previous | Blame | View Log