Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
;
}