Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
ref-qual6.C
blob: 02e3f6e683eb1f87faa68e7dcde75129638f0796 [
file
] [
log
] [
blame
]
// Binding an rvalue to && beats binding it to const& (13.3.3.2).
// { dg-require-effective-target c++11 }
struct
A
{
int
operator
+(
int
)
&&;
};
void
operator
+
(
const
A
&,
int
);
int
main
()
{
return
A
()
+
42
;
}