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
C++: fix-it hint for missing "typename" (PR c++/63392)
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.ext
/
addrfunc1.C
blob
3fec371c28b61ffe24cfccc62c7dbf6ec6c9937d
1
// { dg-do assemble }
2
// { dg-options "-fms-extensions" }
3
// Test that taking the address of a member function name produces
4
// a pointer to member function.
5
// Contributed by Jason Merrill <jason@cygnus.com>
6
7
struct A { };
8
int (A::*p)();
9
10
struct B {
11
int f () { return 0; }
12
void g ();
13
};
14
15
void B::g ()
16
{
17
p = (int (A::*)())&f;
18
}