URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
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);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.