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++.other
/
defarg2.C
blob
cc03cebc19135f6b81f9c0dcad87a08579c4166a
1
// { dg-do run }
2
// Test that default args don't mess up pmf type comparisons.
3
// Contributed by Jason Merrill <jason@cygnus.com>.
4
5
struct A {
6
void f (int = 0) { }
7
};
8
9
int
10
main ()
11
{
12
void (A::*p)(int) = 0;
13
p = &A::f;
14
if (p != &A::f)
15
return 1;
16
}