repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
ptrmem1.C
blob
051448301f94ce556b8da632af6fd49aa8a7e383
1
// { 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
}