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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr35144.C] - Diff between revs 301 and 338

Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 338
// PR c++/35144
// PR c++/35144
// { dg-do compile }
// { dg-do compile }
// { dg-options "-O2" }
// { dg-options "-O2" }
struct A
struct A
{
{
  int baz ();
  int baz ();
};
};
typedef int (A::*P) ();
typedef int (A::*P) ();
struct B
struct B
{
{
  B ();
  B ();
  int foo (P x, int y = 0);
  int foo (P x, int y = 0);
};
};
struct C
struct C
{
{
  typedef int (B::*Q) (P, int);
  typedef int (B::*Q) (P, int);
  void bar (Q x) { c = x; }
  void bar (Q x) { c = x; }
  Q c;
  Q c;
};
};
extern C c;
extern C c;
B::B ()
B::B ()
{
{
 c.bar ((C::Q) &B::foo);
 c.bar ((C::Q) &B::foo);
}
}
 
 

powered by: WebSVN 2.1.0

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