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
Merge reload-branch up to revision 101000
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
conv8.C
blob
4f2bd43c115f1a2f0977d2166d3e0f97b1a2cabc
1
// { dg-do assemble }
2
// Origin: Jakub Jelinek <jakub@redhat.com>
3
4
class bar
5
{
6
public:
7
bar();
8
virtual ~bar();
9
static void a();
10
};
11
12
class baz : public bar
13
{
14
};
15
16
class foo : virtual public baz
17
{
18
public:
19
static void a();
20
void b();
21
};
22
23
typedef void (bar::*T)();
24
T d;
25
26
void foo::a()
27
{
28
typedef void(foo::*t)();
29
t c = & foo::b;
30
d = (T) c; // { dg-warning "" } pointer to member cast
31
}