// { 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" } | |
} |