Ejemplo n.º 1
0
int test8_12345678()
{
                   A a;
    const          A ca = a;
          volatile A va;
    const volatile A cva = a;
    sa<sizeof(sink_8_12345678(a))           == 1 * sizeof(long)> t1;
    sa<sizeof(sink_8_12345678(ca))          == 2 * sizeof(long)> t2;
    sa<sizeof(sink_8_12345678(va))          == 3 * sizeof(long)> t3;
    sa<sizeof(sink_8_12345678(cva))         == 4 * sizeof(long)> t4;
    sa<sizeof(sink_8_12345678(source()))    == 5 * sizeof(long)> t5;
    sa<sizeof(sink_8_12345678(c_source()))  == 6 * sizeof(long)> t6;
    sa<sizeof(sink_8_12345678(v_source()))  == 7 * sizeof(long)> t7;
    sa<sizeof(sink_8_12345678(cv_source())) == 8 * sizeof(long)> t8;
    return 0;
}
Ejemplo n.º 2
0
int test8_12345678()
{
                   A a;
    const          A ca = a;
          volatile A va;
    const volatile A cva = a;
    sa<sizeof(sink_8_12345678(a))           == 1> t1;
    sa<sizeof(sink_8_12345678(ca))          == 2> t2;
    sa<sizeof(sink_8_12345678(va))          == 3> t3;
    sa<sizeof(sink_8_12345678(cva))         == 4> t4;
    sa<sizeof(sink_8_12345678(source()))    == 5> t5;
    sa<sizeof(sink_8_12345678(c_source()))  == 6> t6;
    sa<sizeof(sink_8_12345678(v_source()))  == 7> t7;
    sa<sizeof(sink_8_12345678(cv_source())) == 8> t8;
    return 0;
}