URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [opt/] [ptrmem5.C] - Rev 301
Compare with Previous | Blame | View Log
// PR tree-opt/18904
// { dg-do compile }
// { dg-options "-O3" }
struct Data;
struct Wrapper {
Data* D;
};
struct Data {
int X;
void init(Wrapper&);
};
void Data::init( Wrapper &w ) {
int Data::* res = &Data::X;
w.D = this;
for( int i = 0; i < 4; i++ )
(w.D->*res) = 0;
}