blob: 4a06173f07f54c39f88c3d3037085e0dc185aa35 [file] [log] [blame]
// { dg-options "-w" }
class QString { // { dg-message "previous definition" }
QString (const QString & a); // { dg-message "QString::QString|candidate expects" }
};
class QString { }; // { dg-error "redefinition" }
const QString q () {
QString z; // { dg-error "matching" }
int x;
return x ? QString () : QString (); // { dg-error "matching" }
}