summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/ptrmem2.C
blob: 19c43f7cd1fbfdac813f5c36934a8cbef37b83c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
typedef unsigned int Mword;
struct Thread
{
  Mword sys_ipc_log();
  void hook_ipc_vector();
  unsigned (Thread::*syscall_table)();
};

void Thread::hook_ipc_vector()
{
  syscall_table = &Thread::sys_ipc_log;
}