예제 #1
0
파일: rv5n.C 프로젝트: BoxianLai/moxiedev
int test5_13568()
{
                   A a;
    const          A ca = a; // { dg-error "deleted" }
          volatile A va;
    const volatile A cva = a; // { dg-error "deleted" }
    sink_5_13568(ca);		// { dg-error "lvalue" }
    sink_5_13568(cva);		// { dg-error "lvalue" }
    return 0;
}
예제 #2
0
int test5_13568()
{
                   A a;
    const          A ca = a;
          volatile A va;
    const volatile A cva = a;
    sa<sizeof(sink_5_13568(a))           == 1 * sizeof(long)> t1;
    sa<sizeof(sink_5_13568(ca))          == 6 * sizeof(long)> t2;
    sa<sizeof(sink_5_13568(va))          == 3 * sizeof(long)> t3;
    sa<sizeof(sink_5_13568(cva))         == 8 * sizeof(long)> t4;
    sa<sizeof(sink_5_13568(source()))    == 5 * sizeof(long)> t5;
    sa<sizeof(sink_5_13568(c_source()))  == 6 * sizeof(long)> t6;
    sa<sizeof(sink_5_13568(v_source()))  == 8 * sizeof(long)> t7;
    sa<sizeof(sink_5_13568(cv_source())) == 8 * sizeof(long)> t8;
    return 0;
}