URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// Bug: This checks that the pointer-to-member-function type is not
|
// Bug: This checks that the pointer-to-member-function type is not
|
// shared between differently-qualified pointer-to-method types.
|
// shared between differently-qualified pointer-to-method types.
|
|
|
// { dg-do compile }
|
// { dg-do compile }
|
struct A
|
struct A
|
{
|
{
|
void f () {}
|
void f () {}
|
};
|
};
|
|
|
void (A::*const cp)() = &A::f;
|
void (A::*const cp)() = &A::f;
|
|
|
int main ()
|
int main ()
|
{
|
{
|
void (A::* p)();
|
void (A::* p)();
|
void (A::** ip)() = &p;
|
void (A::** ip)() = &p;
|
|
|
*ip = &A::f;
|
*ip = &A::f;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.