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

Subversion Repositories openrisc_me

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

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.