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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [ptrmem5.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// PR tree-opt/18904
2
// { dg-do compile }
3
// { dg-options "-O3" }
4
 
5
struct Data;
6
struct Wrapper {
7
  Data* D;
8
};
9
struct Data {
10
  int X;
11
  void init(Wrapper&);
12
};
13
void Data::init( Wrapper &w ) {
14
  int Data::* res  = &Data::X;
15
  w.D = this;
16
  for( int i = 0; i < 4; i++ )
17
    (w.D->*res) = 0;
18
}
19
 

powered by: WebSVN 2.1.0

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