2009-12-15 Paolo Bonzini <bonzini@gnu.org>
[official-gcc.git] / gcc / testsuite / g++.dg / parse / error19.C
blob39c2d78583736e5cb6af390e27a1417b69601c20
1 // { dg-options "-fshow-column -fmessage-length=0   -ansi -pedantic-errors -Wno-long-long " }
2 // PR C++/17867
4 struct A
5 {  // { dg-message "1:candidate is:" }
6   A(int);
7 };
9 const A& foo();
11 void bar()
13   foo()=A(0); // { dg-error "12:no match for 'operator='" }