Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.old-deja/g++.mike/p4484.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 // prms-id: 4484 | |
3 | |
4 class A { | |
5 char buf[64]; | |
6 }; | |
7 | |
8 typedef void (A::*pmf)(); | |
9 typedef void (A::*pmfc)() const; | |
10 | |
11 pmfc p = (pmfc)(pmf)0; | |
12 | |
13 class B { | |
14 }; | |
15 | |
16 class D : public A, public B { | |
17 }; | |
18 | |
19 typedef int (B::*bmfp)(); | |
20 typedef int (D::*dmfp)(); | |
21 | |
22 bmfp foo; | |
23 | |
24 void bar(dmfp a) { | |
25 bar(foo); | |
26 } |