gcc/libmudflap/testsuite/libmudflap.c++/pass27-frag.cxx

13 lines
134 B
C++

class foo {
char z [10];
public:
char *get_z () { return & this->z[0]; }
};
int main ()
{
foo x;
x.get_z()[9] = 'a';
return 0;
}