Daily bump.
[official-gcc.git] / libmudflap / testsuite / libmudflap.c++ / pass28-frag.cxx
blob75e14ba1460069e79a5f0e26313e5b25c0b9d00e
1 class foo {
2 char z [10];
3 public:
4 virtual char *get_z () { return & this->z[0]; }
5 };
7 class bar: public foo {
8 char q [20];
9 public:
10 char *get_z () { return & this->q[0]; }
13 int main () {
14 foo *x = new bar ();
16 x->get_z()[9] = 'a';
18 delete x;
19 return 0;