int test2_13() { A a; const A ca = a; volatile A va; const volatile A cva = a; sa<sizeof(sink_2_13(a)) == 1 * sizeof(long)> t1; sa<sizeof(sink_2_13(va)) == 3 * sizeof(long)> t3; return 0; }
int test2_13() { A a; const A ca = a; // { dg-error "deleted" } volatile A va; const volatile A cva = a; // { dg-error "deleted" } sink_2_13(ca); // { dg-error "" } sink_2_13(cva); // { dg-error "" } sink_2_13(source()); // { dg-error "" } sink_2_13(c_source()); // { dg-error "" } sink_2_13(v_source()); // { dg-error "" } sink_2_13(cv_source()); // { dg-error "" } return 0; }