Sign in
gnu
/
gcc
/
1126a05deadda1ef363e0f78fd802c8ee0ea5b56
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
overload12.C
blob: 61d3740ed4155552ae03a64fcd272bd4bede22b3 [
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_
;
}
int
main
()
{
return
b
().
foo
();
}