Sign in
gnu
/
gcc
/
refs/tags/prereleases/egcs-1.1.1-pre
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
overload12.C
blob: dc336c5caed317317efad39110dbb7d7c2c6aa5d [
file
] [
log
] [
blame
]
// PRMS Id: 4066
// Bug: g++ doesn't notice the const on reference returns.
struct
B
{
int
foo
()
{
return
1
;
}
int
foo
()
const
{
return
0
;
}
};
B b_
;
const
B
&
b
()
{
return
b_
;
}
main
()
{
return
b
().
foo
();
}