int test5_13467() { A a; const A ca = a; // { dg-error "deleted" } volatile A va; const volatile A cva = a; // { dg-error "deleted" } sink_5_13467(source()); // { dg-error "" } sink_5_13467(cv_source()); // { dg-error "" } return 0; }
int test5_13467() { A a; const A ca = a; volatile A va; const volatile A cva = a; sink_5_13467(source()); // { dg-error "ambiguous" } sink_5_13467(cv_source()); // { dg-error "no match" } return 0; }
int test5_13467() { A a; const A ca = a; // { dg-error "deleted" } volatile A va; const volatile A cva = a; // { dg-error "deleted" } sink_5_13467(source()); // { dg-error "ambiguous" } // { dg-message "candidate" "candidate note" { target *-*-* } 375 } sink_5_13467(cv_source()); // { dg-error "no match" } // { dg-message "candidate" "candidate note" { target *-*-* } 377 } return 0; }
int test5_13467() { A a; const A ca = a; volatile A va; const volatile A cva = a; sa<sizeof(sink_5_13467(a)) == 1 * sizeof(long)> t1; sa<sizeof(sink_5_13467(ca)) == 4 * sizeof(long)> t2; sa<sizeof(sink_5_13467(va)) == 3 * sizeof(long)> t3; sa<sizeof(sink_5_13467(cva)) == 4 * sizeof(long)> t4; sa<sizeof(sink_5_13467(c_source())) == 6 * sizeof(long)> t6; sa<sizeof(sink_5_13467(v_source())) == 7 * sizeof(long)> t7; return 0; }