int test2_58() { A a; const A ca = a; // { dg-error "deleted" } volatile A va; const volatile A cva = a; // { dg-error "deleted" } sink_2_58(a); // { dg-error "" } sink_2_58(ca); // { dg-error "" } sink_2_58(va); // { dg-error "" } sink_2_58(cva); // { dg-error "" } }
int test2_58() { A a; const A ca = a; volatile A va; const volatile A cva = a; sa<sizeof(sink_2_58(source())) == 5 * sizeof(long)> t5; sa<sizeof(sink_2_58(c_source())) == 8 * sizeof(long)> t6; sa<sizeof(sink_2_58(v_source())) == 8 * sizeof(long)> t7; sa<sizeof(sink_2_58(cv_source())) == 8 * sizeof(long)> t8; return 0; }