repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
cast1.C
blob
f90b42165a80f34d9b2671fdc1086995698683f5
1
// PR c++/10841
2
3
int main() {
4
class Base {
5
public:
6
int i, j, k;
7
void f(); };
8
9
class Derived : private Base {
10
public:
11
int m, n, p;
12
void g();
13
};
14
15
Derived derived;
16
Base &base = (Base &)derived;
17
(int Base::*)&Derived::n;
18
(int Derived::*)&Base::j;
19
(void (Base::*)(void))&Derived::g;
20
(void (Derived::*)(void))&Base::f;
21
}
22