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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.ext
/
addrfunc2.C
blob
7314d1632f838e0b2ed5ee11f62963414f8674f8
1
// { dg-do run }
2
// { dg-options "-fms-extensions" }
3
// Test for implicit & on methods.
4
// Contributed by Jason Merrill <jason@cygnus.com>.
5
6
struct A {
7
void f (int = 0) { }
8
};
9
10
int
11
main ()
12
{
13
void (A::*p)(int) = 0;
14
p = A::f;
15
if (p != A::f)
16
return 1;
17
}