Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.old-deja/g++.mike/net18.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // { dg-do assemble } |
2 | |
3 class ClassA { | |
4 public: | |
5 typedef ClassA& (*PMFV)(const char*); | |
6 static PMFV setMapper(PMFV); | |
7 static PMFV _mapper; | |
8 }; | |
9 | |
10 class ClassB { | |
11 public: | |
12 typedef ClassB& (*PMFV)(const char*); | |
13 }; | |
14 | |
15 ClassA::PMFV ClassA::setMapper(ClassA::PMFV newFunc) | |
16 { | |
17 PMFV oldFunc = _mapper; | |
18 _mapper = newFunc; | |
19 | |
20 return oldFunc; | |
21 } |