Sign in
gnu
/
gcc
/
refs/heads/devel/c++-contracts
/
.
/
gcc
/
testsuite
/
g++.dg
/
init
/
ref8.C
blob: 5b68a2f003315de0e06b73a8934273be28173db0 [
file
] [
log
] [
blame
]
struct
A
{
A
operator
=(
const
A
&);
};
A
operator
*(
A
,
A
);
A
&
operator
+=(
A
&
a
,
const
A
&
b
)
{
return
a
=
a
*
b
;
// { dg-error "non-const lvalue reference" }
}