OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [inherit/] [ptrmem1.C] - Blame information for rev 717

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/14803
2
// { dg-options "-Werror" }
3
 
4
struct sc_module { int member; };
5
 
6
struct sc_signal_in_if { bool state; };
7
 
8
typedef void (sc_module::*SC_ENTRY_FUNC)();
9
 
10
class sc_clock : public sc_signal_in_if, public sc_module
11
{
12
public:
13
  sc_clock();
14
  void posedge_action();
15
  SC_ENTRY_FUNC fptr;
16
};
17
 
18
sc_clock::sc_clock()
19
{
20
  fptr = static_cast(&sc_clock::posedge_action);
21
}

powered by: WebSVN 2.1.0

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