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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [ptrmem1.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// GROUPS passed pointers-to-members
3
class my_class
4
{
5
public:
6
  typedef void func_type (int num);
7
  my_class (int num, func_type* proc);
8
  void dispatch (void);
9
private:
10
  int _num;
11
  func_type *_proc;
12
};
13
 
14
my_class::my_class (int num, func_type* proc) : _num(num), _proc(proc)
15
{
16
}
17
 
18
void my_class::dispatch (void)
19
{
20
  _proc(_num);
21
}

powered by: WebSVN 2.1.0

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