Rebase.
[official-gcc.git] / gcc / testsuite / g++.dg / other / error20.C
blobdab6de40e4f363a051ff0ded7f057bc13a1d6c57
1 // PR c++/34275
2 // { dg-do compile }
4 struct A                        // { dg-message "operator=|no known conversion" }
6   virtual A foo ();
7 };
9 void bar (A& a)
11   a.foo () = 0; // { dg-error "operand types are 'A' and 'int'" }
12 }