URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [libmudflap/] [testsuite/] [libmudflap.c++/] [pass28-frag.cxx] - Rev 154
Compare with Previous | Blame | View Log
class foo { char z [10]; public: virtual char *get_z () { return & this->z[0]; } }; class bar: public foo { char q [20]; public: char *get_z () { return & this->q[0]; } }; int main () { foo *x = new bar (); x->get_z()[9] = 'a'; delete x; return 0; }