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
/
init
/
static2.C
blob
b0344f480669bf901413285f8f7858be8d37a0ac
1
// PR 14804
2
// { dg-do run }
3
4
struct A {
5
virtual void foo() = 0;
6
};
7
8
struct B : public A {
9
virtual void bar() = 0;
10
};
11
12
typedef void (A::*mfptr)();
13
14
struct D {
15
mfptr p;
16
};
17
18
static const D ds[] = {
19
{ reinterpret_cast<mfptr>(&B::bar) },
20
};
21
22
int main()
23
{
24
return 0;
25
}