Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.mike / net37.C
bloba23dfbc5d57e0c5f3dfc43988a1430acf1278067
1 // { dg-do run  }
2 class B {
3 public:
4     int bi;
5     void bProc ( void ) { bi = 39; }
6   };
8 class D : public B {
9 public:
10     int di;
11     void dProc (void ){ di = 42; }
12   };
14 typedef void (B::*BPROC)(void);
15 typedef void (D::*DPROC)(void);
17 union AFX_PMSG {
18 public:
20   AFX_PMSG () {};
21   AFX_PMSG ( BPROC bpr ) { bfn = bpr ; }
23   operator BPROC() { return bfn; }
25   BPROC bfn;
26   DPROC dfn;
30 int main(int argc, char *argv[]) {
31   B b;
32   D d;
34   BPROC    bpr = &B::bProc;
35   AFX_PMSG pmsg(bpr);
37   BPROC ppr = pmsg;
39   return 0;