int test4_1345() { A a; const A ca = a; volatile A va; const volatile A cva = a; sink_4_1345(c_source()); // { dg-error "no match" } sink_4_1345(v_source()); // { dg-error "no match" } sink_4_1345(cv_source()); // { dg-error "no match" } return 0; }
int test4_1345() { A a; const A ca = a; // { dg-error "lvalue" } volatile A va; const volatile A cva = a; // { dg-error "lvalue" } sink_4_1345(c_source()); // { dg-error "no match" } // { dg-message "candidate" "candidate note" { target *-*-* } 297 } sink_4_1345(v_source()); // { dg-error "no match" } // { dg-message "candidate" "candidate note" { target *-*-* } 299 } sink_4_1345(cv_source()); // { dg-error "no match" } // { dg-message "candidate" "candidate note" { target *-*-* } 301 } return 0; }