int test2_35()
{
                   A a;
    const          A ca = a;
          volatile A va;
    const volatile A cva = a;
    sa<sizeof(sink_2_35(a))           == 3 * sizeof(long)> t1;
    sa<sizeof(sink_2_35(va))          == 3 * sizeof(long)> t3;
    sa<sizeof(sink_2_35(source()))    == 5 * sizeof(long)> t5;
    return 0;
}
Example #2
0
File: rv2n.C Project: 0day-ci/gcc
int test2_35()
{
                   A a;
    const          A ca = a; // { dg-error "deleted" }
          volatile A va;
    const volatile A cva = a; // { dg-error "deleted" }
    sink_2_35(ca);           // { dg-error "" }
    sink_2_35(cva);          // { dg-error "" }
    sink_2_35(c_source());   // { dg-error "" }
    sink_2_35(v_source());   // { dg-error "" }
    sink_2_35(cv_source());  // { dg-error "" }
    return 0;
}