URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
// PR c++/14803
|
// PR c++/14803
|
// { dg-options "-Werror" }
|
// { dg-options "-Werror" }
|
|
|
struct sc_module { int member; };
|
struct sc_module { int member; };
|
|
|
struct sc_signal_in_if { bool state; };
|
struct sc_signal_in_if { bool state; };
|
|
|
typedef void (sc_module::*SC_ENTRY_FUNC)();
|
typedef void (sc_module::*SC_ENTRY_FUNC)();
|
|
|
class sc_clock : public sc_signal_in_if, public sc_module
|
class sc_clock : public sc_signal_in_if, public sc_module
|
{
|
{
|
public:
|
public:
|
sc_clock();
|
sc_clock();
|
void posedge_action();
|
void posedge_action();
|
SC_ENTRY_FUNC fptr;
|
SC_ENTRY_FUNC fptr;
|
};
|
};
|
|
|
sc_clock::sc_clock()
|
sc_clock::sc_clock()
|
{
|
{
|
fptr = static_cast(&sc_clock::posedge_action);
|
fptr = static_cast(&sc_clock::posedge_action);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.