URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// Origin: Jakub Jelinek
|
// Origin: Jakub Jelinek
|
|
|
class bar
|
class bar
|
{
|
{
|
public:
|
public:
|
bar();
|
bar();
|
virtual ~bar();
|
virtual ~bar();
|
static void a();
|
static void a();
|
};
|
};
|
|
|
class baz : public bar
|
class baz : public bar
|
{
|
{
|
};
|
};
|
|
|
class foo : virtual public baz
|
class foo : virtual public baz
|
{
|
{
|
public:
|
public:
|
static void a();
|
static void a();
|
void b();
|
void b();
|
};
|
};
|
|
|
typedef void (bar::*T)();
|
typedef void (bar::*T)();
|
T d;
|
T d;
|
|
|
void foo::a()
|
void foo::a()
|
{
|
{
|
typedef void(foo::*t)();
|
typedef void(foo::*t)();
|
t c = & foo::b;
|
t c = & foo::b;
|
d = (T) c; // { dg-warning "" } pointer to member cast
|
d = (T) c; // { dg-warning "" } pointer to member cast
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.