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