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] - Rev 816

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;
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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