repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
RISC-V: Fix rtl checking enabled failure with -msave-restore.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p4484.C
blob
b0ec0c9fcebab62f4a6294b1a7fa8f730277f52d
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
}