blob: 406cc10401d4ca5487645b97ec9eca7dc7ad87f9 [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 reference" }
}