summaryrefslogtreecommitdiff
path: root/libmudflap/testsuite/libmudflap.c++/pass27-frag.cxx
blob: aca2ea3a3b67941696aaaa1089c923168b458ea9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class foo {
  char z [10];
public:
  char *get_z () { return & this->z[0]; }
};

int main ()
{
foo x;
x.get_z()[9] = 'a';
return 0;
}