int test5_12356()
{
                   A a;
    const          A ca = a;
          volatile A va;
    const volatile A cva = a;
    sink_5_12356(cva);          // { dg-error "no match" }
    sink_5_12356(v_source());   // { dg-error "no match" }
    sink_5_12356(cv_source());  // { dg-error "no match" }
    return 0;
}
int test4_1345()
{
                   A a;
    const          A ca = a;
          volatile A va;
    const volatile A cva = a;
    sink_4_1345(c_source());   // { dg-error "no match" }
    sink_4_1345(v_source());   // { dg-error "no match" }
    sink_4_1345(cv_source());  // { dg-error "no match" }
    return 0;
}
int test5_23567()
{
                   A a;
    const          A ca = a;
          volatile A va;
    const volatile A cva = a;
    sink_5_23567(a);            // { dg-error "ambiguous" }
    sink_5_23567(cva);          // { dg-error "no match" }
    sink_5_23567(cv_source());  // { dg-error "no match" }
    return 0;
}
int test4_3567()
{
                   A a;
    const          A ca = a;
          volatile A va;
    const volatile A cva = a;
    sink_4_3567(ca);		// { dg-error "lvalue" }
    sink_4_3567(cva);          // { dg-error "no match" }
    sink_4_3567(cv_source());  // { dg-error "no match" }
    return 0;
}
int test4_2346()
{
                   A a;
    const          A ca = a;
          volatile A va;
    const volatile A cva = a;
    sink_4_2346(a);            // { dg-error "ambiguous" }
    sink_4_2346(v_source());   // { dg-error "no match" }
    sink_4_2346(cv_source());  // { dg-error "no match" }
    return 0;
}
Exemple #6
0
int test2_45()
{
                   A a;
    const          A ca = a; // { dg-error "deleted" }
          volatile A va;
    const volatile A cva = a; // { dg-error "deleted" }
    sink_2_45(c_source());   // { dg-error "" }
    sink_2_45(v_source());   // { dg-error "" }
    sink_2_45(cv_source());  // { dg-error "" }
    return 0;
}
Exemple #7
0
int test5_23567()
{
                   A a;
    const          A ca = a; // { dg-error "deleted" }
          volatile A va;
    const volatile A cva = a; // { dg-error "deleted" }
    sink_5_23567(a);            // { dg-error "" }
    sink_5_23567(cva);          // { dg-error "" }
    sink_5_23567(cv_source());  // { dg-error "" }
    return 0;
}
int test1_4()
{
                   A a;
    const          A ca = a;
          volatile A va;
    const volatile A cva = a;
    sink_1_4(source());     // { dg-error "invalid initialization" }
    sink_1_4(c_source());   // { dg-error "invalid initialization" }
    sink_1_4(v_source());   // { dg-error "invalid initialization" }
    sink_1_4(cv_source());  // { dg-error "invalid initialization" }
    return 0;
}
Exemple #9
0
int test5_12346()
{
                   A a;
    const          A ca = a; // { dg-error "deleted" }
          volatile A va;
    const volatile A cva = a; // { dg-error "deleted" }
    sink_5_12346(v_source());   // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 64 }
    sink_5_12346(cv_source());  // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 66 }
    return 0;
}
int test2_68()
{
                   A a;
    const          A ca = a;
          volatile A va;
    const volatile A cva = a;
    sa<sizeof(sink_2_68(source()))    == 6 * sizeof(long)> t5;
    sa<sizeof(sink_2_68(c_source()))  == 6 * sizeof(long)> t6;
    sa<sizeof(sink_2_68(v_source()))  == 8 * sizeof(long)> t7;
    sa<sizeof(sink_2_68(cv_source())) == 8 * sizeof(long)> t8;
    return 0;
}
int test4_2456()
{
                   A a;
    const          A ca = a; // { dg-error "lvalue" }
          volatile A va;
    const volatile A cva = a; // { dg-error "lvalue" }
    sink_4_2456(v_source());   // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 781 }
    sink_4_2456(cv_source());  // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 783 }
    return 0;
}
Exemple #12
0
int test1_2()
{
                   A a;
    const          A ca = a; // { dg-error "deleted" }
          volatile A va;
    const volatile A cva = a; // { dg-error "deleted" }
    sink_1_2(va);           // { dg-error "" }
    sink_1_2(cva);          // { dg-error "" }
    sink_1_2(v_source());   // { dg-error "" }
    sink_1_2(cv_source());  // { dg-error "" }
    return 0;
}
Exemple #13
0
int test5_23457()
{
                   A a;
    const          A ca = a; // { dg-error "deleted" }
          volatile A va;
    const volatile A cva = a; // { dg-error "deleted" }
    sink_5_23457(a);            // { dg-error "ambiguous" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 540 }
    sink_5_23457(cv_source());  // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 542 }
    return 0;
}
int test3_578()
{
                   A a;
    const          A ca;
          volatile A va;
    const volatile A cva;
    sa<sizeof(sink_3_578(source()))    == 5 * sizeof(long)> t5;
    sa<sizeof(sink_3_578(c_source()))  == 8 * sizeof(long)> t6;
    sa<sizeof(sink_3_578(v_source()))  == 7 * sizeof(long)> t7;
    sa<sizeof(sink_3_578(cv_source())) == 8 * sizeof(long)> t8;
    return 0;
}
Exemple #15
0
int test2_23()
{
                   A a;
    const          A ca = a; // { dg-error "deleted" }
          volatile A va;
    const volatile A cva = a; // { dg-error "deleted" }
    sink_2_23(a);            // { dg-error "ambiguous" }
    sink_2_23(cva);          // { dg-error "" }
    sink_2_23(v_source());   // { dg-error "" }
    sink_2_23(cv_source());  // { dg-error "" }
    return 0;
}
int test4_1237()
{
                   A a;
    const          A ca = a; // { dg-error "lvalue" }
          volatile A va;
    const volatile A cva = a; // { dg-error "lvalue" }
    sink_4_1237(cva);          // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 102 }
    sink_4_1237(cv_source());  // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 104 }
    return 0;
}
int test4_3467()
{
                   A a;
    const          A ca = a; // { dg-error "lvalue" }
          volatile A va;
    const volatile A cva = a; // { dg-error "lvalue" }
    sink_4_3467(source());     // { dg-error "ambiguous" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 938 }
    sink_4_3467(cv_source());  // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 940 }
    return 0;
}
Exemple #18
0
int test3_467()
{
                   A a;
    const          A ca = a; // { dg-error "deleted" }
          volatile A va;
    const volatile A cva = a; // { dg-error "deleted" }
    sink_3_467(source());     // { dg-error "ambiguous" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 862 }
    sink_3_467(cv_source());  // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 864 }
    return 0;
}
Exemple #19
0
int test3_347()
{
                   A a;
    const          A ca = a; // { dg-error "deleted" }
          volatile A va;
    const volatile A cva = a; // { dg-error "deleted" }
    sink_3_347(c_source());   // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 705 }
    sink_3_347(cv_source());  // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 707 }
    return 0;
}
Exemple #20
0
int test3_257()
{
                   A a;
    const          A ca = a; // { dg-error "deleted" }
          volatile A va;
    const volatile A cva = a; // { dg-error "deleted" }
    sink_3_257(va);		// { dg-error "lvalue" }
    sink_3_257(cva);          // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 587 }
    sink_3_257(cv_source());  // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 589 }
    return 0;
}
Exemple #21
0
int test2_18()
{
                   A a;
    const          A ca = a;
          volatile A va;
    const volatile A cva = a;
    sa<sizeof(sink_2_18(a))           == 1> t1;
    sa<sizeof(sink_2_18(source()))    == 8> t5;
    sa<sizeof(sink_2_18(c_source()))  == 8> t6;
    sa<sizeof(sink_2_18(v_source()))  == 8> t7;
    sa<sizeof(sink_2_18(cv_source())) == 8> t8;
    return 0;
}
Exemple #22
0
int test5_13567()
{
                   A a;
    const          A ca = a; // { dg-error "deleted" }
          volatile A va;
    const volatile A cva = a; // { dg-error "deleted" }
    sink_5_13567(ca);		// { dg-error "lvalue" }
    sink_5_13567(cva);          // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 395 }
    sink_5_13567(cv_source());  // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 397 }
    return 0;
}
int test4_2346()
{
                   A a;
    const          A ca = a; // { dg-error "lvalue" }
          volatile A va;
    const volatile A cva = a; // { dg-error "lvalue" }
    sink_4_2346(a);            // { dg-error "ambiguous" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 612 }
    sink_4_2346(v_source());   // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 614 }
    sink_4_2346(cv_source());  // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 616 }
    return 0;
}
int test4_1345()
{
                   A a;
    const          A ca = a; // { dg-error "lvalue" }
          volatile A va;
    const volatile A cva = a; // { dg-error "lvalue" }
    sink_4_1345(c_source());   // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 297 }
    sink_4_1345(v_source());   // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 299 }
    sink_4_1345(cv_source());  // { dg-error "no match" }
    // { dg-message "candidate" "candidate note" { target *-*-* } 301 }
    return 0;
}
int test5_23678()
{
                   A a;
    const          A ca = a;
          volatile A va;
    const volatile A cva = a;
    sa<sizeof(sink_5_23678(ca))          == 2 * sizeof(long)> t2;
    sa<sizeof(sink_5_23678(va))          == 3 * sizeof(long)> t3;
    sa<sizeof(sink_5_23678(cva))         == 8 * sizeof(long)> t4;
    sa<sizeof(sink_5_23678(c_source()))  == 6 * sizeof(long)> t6;
    sa<sizeof(sink_5_23678(v_source()))  == 7 * sizeof(long)> t7;
    sa<sizeof(sink_5_23678(cv_source())) == 8 * sizeof(long)> t8;
    return 0;
}
int test3_368()
{
                   A a;
    const          A ca;
          volatile A va;
    const volatile A cva;
    sa<sizeof(sink_3_368(a))           == 3 * sizeof(long)> t1;
    sa<sizeof(sink_3_368(va))          == 3 * sizeof(long)> t3;
    sa<sizeof(sink_3_368(source()))    == 6 * sizeof(long)> t5;
    sa<sizeof(sink_3_368(c_source()))  == 6 * sizeof(long)> t6;
    sa<sizeof(sink_3_368(v_source()))  == 8 * sizeof(long)> t7;
    sa<sizeof(sink_3_368(cv_source())) == 8 * sizeof(long)> t8;
    return 0;
}
int test3_128()
{
                   A a;
    const          A ca;
          volatile A va;
    const volatile A cva;
    sa<sizeof(sink_3_128(a))           == 1 * sizeof(long)> t1;
    sa<sizeof(sink_3_128(ca))          == 2 * sizeof(long)> t2;
    sa<sizeof(sink_3_128(source()))    == 8 * sizeof(long)> t5;
    sa<sizeof(sink_3_128(c_source()))  == 8 * sizeof(long)> t6;
    sa<sizeof(sink_3_128(v_source()))  == 8 * sizeof(long)> t7;
    sa<sizeof(sink_3_128(cv_source())) == 8 * sizeof(long)> t8;
    return 0;
}
int test1_7()
{
                   A a;
    const          A ca = a;
          volatile A va;
    const volatile A cva = a;
    sink_1_7(a);	    // { dg-error "lvalue" }
    sink_1_7(ca);           // { dg-error "invalid initialization" }
    sink_1_7(va);	    // { dg-error "lvalue" }
    sink_1_7(cva);          // { dg-error "invalid initialization" }
    sink_1_7(c_source());   // { dg-error "invalid initialization" }
    sink_1_7(cv_source());  // { dg-error "invalid initialization" }
    return 0;
}
Exemple #29
0
int test6_235678()
{
                   A a;
    const          A ca;
          volatile A va;
    const volatile A cva;
    sa<sizeof(sink_6_235678(ca))          == 2 * sizeof(long)> t2;
    sa<sizeof(sink_6_235678(va))          == 3 * sizeof(long)> t3;
    sa<sizeof(sink_6_235678(source()))    == 5 * sizeof(long)> t5;
    sa<sizeof(sink_6_235678(c_source()))  == 6 * sizeof(long)> t6;
    sa<sizeof(sink_6_235678(v_source()))  == 7 * sizeof(long)> t7;
    sa<sizeof(sink_6_235678(cv_source())) == 8 * sizeof(long)> t8;
    return 0;
}
Exemple #30
0
int test1_7()
{
                   A a;
    const          A ca = a; // { dg-error "deleted" }
          volatile A va;
    const volatile A cva = a; // { dg-error "deleted" }
    sink_1_7(a);	    // { dg-error "lvalue" }
    sink_1_7(ca);           // { dg-error "" }
    sink_1_7(va);	    // { dg-error "lvalue" }
    sink_1_7(cva);          // { dg-error "" }
    sink_1_7(c_source());   // { dg-error "" }
    sink_1_7(cv_source());  // { dg-error "" }
    return 0;
}