1 2 3 4 5 6 7 8 9 10 11 12 13 14
// { dg-do assemble } // Here is another program from the net. class B; class A { // { dg-message "note" } copy ctor candidate private: A(B *); // { dg-message "note" } public: A(long); // { dg-message "note" } }; A a(0); // { dg-error "ambiguous" } // { dg-message "candidate" "candidate note" { target *-*-* } 13 }