OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [inherit/] [ptrmem1.C] - Rev 154

Compare with Previous | Blame | View Log

// PR c++/14803
// { dg-options "-Werror" }

struct sc_module { int member; };

struct sc_signal_in_if { bool state; };

typedef void (sc_module::*SC_ENTRY_FUNC)();

class sc_clock : public sc_signal_in_if, public sc_module
{
public:
  sc_clock();
  void posedge_action();
  SC_ENTRY_FUNC fptr;
};

sc_clock::sc_clock()
{
  fptr = static_cast<SC_ENTRY_FUNC>(&sc_clock::posedge_action);
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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