Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/other/default6.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 // PR c++/30108 |
2 | |
3 class BaseRobot { | |
4 typedef void (BaseRobot::*PseudoState)(void); | |
5 typedef PseudoState STATE; | |
6 STATE initial (); | |
7 int ready (); | |
8 STATE stpOtherTask (); | |
9 STATE commonEventProcessing (STATE pIdleTarget=(STATE)&BaseRobot::ready); | |
10 }; | |
11 BaseRobot::STATE BaseRobot::initial () | |
12 { | |
13 return commonEventProcessing (); | |
14 } | |
15 BaseRobot::STATE BaseRobot::stpOtherTask () | |
16 { | |
17 return commonEventProcessing (); | |
18 } |