Sign in
llvm
/
llvm-archive
/
b369b153199df31bac22b9280b8450b14325b8c7
/
.
/
llvm-gcc-4.2
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
overload12.C
blob: b6ff7e167769711489e7c4e7a0b130cba86add11 [
file
] [
log
] [
blame
]
// { dg-do run }
// 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
();
}