1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// { dg-do assemble } class Parent { public: Parent() {} Parent( char *s ) {} }; class Child : public Parent { // { dg-message "note" } called }; int main() { Child c( "String initializer" ); // { dg-error "match" } bad // { dg-message "candidate" "candidate note" { target *-*-* } 12 } return 0; }