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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
pmf3.C
blob
636ac5d345f968947f35e5a85990d26af9c5c294
1
// { dg-do assemble }
2
// From: enewton@uunet.uu.NET
3
// Subject: g++ 2.5.8: cannot cast member function pointers
4
// Date: 27 Jan 1994 01:22:56 -0500
5
6
struct A {
7
void f(char);
8
void g(int);
9
};
10
11
typedef void (A::*Ptr)(char);
12
13
void q() {
14
Ptr p;
15
16
p = (Ptr) &A::f;
17
p = (Ptr) &A::g;
18
p = &A::f;
19
}