Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
overload3.C
blob: 0eecabdecc757adb65bfdb0bb55a774dd6e8db50 [
file
] [
log
] [
blame
]
// PR c++/59823
// { dg-do compile { target c++11 } }
struct
X
{
};
void
f
(
X
&&);
struct
wrap
{
operator
const
X
&()
const
;
};
int
main
()
{
wrap w
;
f
(
w
);
// { dg-error "" }
}