OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [libmudflap/] [testsuite/] [libmudflap.c++/] [pass27-frag.cxx] - Blame information for rev 819

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
class foo {
2
  char z [10];
3
public:
4
  char *get_z () { return & this->z[0]; }
5
};
6
 
7
int main ()
8
{
9
foo x;
10
x.get_z()[9] = 'a';
11
return 0;
12
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.