Ticket #8734: mem_fn_eq_test.cpp.patch

File mem_fn_eq_test.cpp.patch, 5.9 KB (added by Mike Liang <mtliang@…>, 9 years ago)

uniquify dummy functions

  • libs/bind/test/mem_fn_eq_test.cpp

     
    3939    // 0
    4040
    4141    int mf0_1() { return 0; }
    42     int mf0_2() { return 0; }
     42    int mf0_2() { return 1; }
    4343
    4444    int cmf0_1() const { return 0; }
    45     int cmf0_2() const { return 0; }
     45    int cmf0_2() const { return 1; }
    4646
    4747    void mf0v_1() {}
    48     void mf0v_2() {}
     48    void mf0v_2() { static int i=0; ++i; }
    4949
    5050    void cmf0v_1() const {}
    51     void cmf0v_2() const {}
     51    void cmf0v_2() const { static int i=0; ++i; }
    5252
    5353    // 1
    5454
    5555    int mf1_1(int) { return 0; }
    56     int mf1_2(int) { return 0; }
     56    int mf1_2(int) { return 1; }
    5757
    5858    int cmf1_1(int) const { return 0; }
    59     int cmf1_2(int) const { return 0; }
     59    int cmf1_2(int) const { return 1; }
    6060
    6161    void mf1v_1(int) {}
    62     void mf1v_2(int) {}
     62    void mf1v_2(int) { static int i=0; ++i; }
    6363
    6464    void cmf1v_1(int) const {}
    65     void cmf1v_2(int) const {}
     65    void cmf1v_2(int) const { static int i=0; ++i; }
    6666
    6767    // 2
    6868
    6969    int mf2_1(int, int) { return 0; }
    70     int mf2_2(int, int) { return 0; }
     70    int mf2_2(int, int) { return 1; }
    7171
    7272    int cmf2_1(int, int) const { return 0; }
    73     int cmf2_2(int, int) const { return 0; }
     73    int cmf2_2(int, int) const { return 1; }
    7474
    7575    void mf2v_1(int, int) {}
    76     void mf2v_2(int, int) {}
     76    void mf2v_2(int, int) { static int i=0; ++i; }
    7777
    7878    void cmf2v_1(int, int) const {}
    79     void cmf2v_2(int, int) const {}
     79    void cmf2v_2(int, int) const { static int i=0; ++i; }
    8080
    8181    // 3
    8282
    8383    int mf3_1(int, int, int) { return 0; }
    84     int mf3_2(int, int, int) { return 0; }
     84    int mf3_2(int, int, int) { return 1; }
    8585
    8686    int cmf3_1(int, int, int) const { return 0; }
    87     int cmf3_2(int, int, int) const { return 0; }
     87    int cmf3_2(int, int, int) const { return 1; }
    8888
    8989    void mf3v_1(int, int, int) {}
    90     void mf3v_2(int, int, int) {}
     90    void mf3v_2(int, int, int) { static int i=0; ++i; }
    9191
    9292    void cmf3v_1(int, int, int) const {}
    93     void cmf3v_2(int, int, int) const {}
     93    void cmf3v_2(int, int, int) const { static int i=0; ++i; }
    9494
    9595    // 4
    9696
    9797    int mf4_1(int, int, int, int) { return 0; }
    98     int mf4_2(int, int, int, int) { return 0; }
     98    int mf4_2(int, int, int, int) { return 1; }
    9999
    100100    int cmf4_1(int, int, int, int) const { return 0; }
    101     int cmf4_2(int, int, int, int) const { return 0; }
     101    int cmf4_2(int, int, int, int) const { return 1; }
    102102
    103103    void mf4v_1(int, int, int, int) {}
    104     void mf4v_2(int, int, int, int) {}
     104    void mf4v_2(int, int, int, int) { static int i=0; ++i; }
    105105
    106106    void cmf4v_1(int, int, int, int) const {}
    107     void cmf4v_2(int, int, int, int) const {}
     107    void cmf4v_2(int, int, int, int) const { static int i=0; ++i; }
    108108
    109109    // 5
    110110
    111111    int mf5_1(int, int, int, int, int) { return 0; }
    112     int mf5_2(int, int, int, int, int) { return 0; }
     112    int mf5_2(int, int, int, int, int) { return 1; }
    113113
    114114    int cmf5_1(int, int, int, int, int) const { return 0; }
    115     int cmf5_2(int, int, int, int, int) const { return 0; }
     115    int cmf5_2(int, int, int, int, int) const { return 1; }
    116116
    117117    void mf5v_1(int, int, int, int, int) {}
    118     void mf5v_2(int, int, int, int, int) {}
     118    void mf5v_2(int, int, int, int, int) { static int i=0; ++i; }
    119119
    120120    void cmf5v_1(int, int, int, int, int) const {}
    121     void cmf5v_2(int, int, int, int, int) const {}
     121    void cmf5v_2(int, int, int, int, int) const { static int i=0; ++i; }
    122122
    123123    // 6
    124124
    125125    int mf6_1(int, int, int, int, int, int) { return 0; }
    126     int mf6_2(int, int, int, int, int, int) { return 0; }
     126    int mf6_2(int, int, int, int, int, int) { return 1; }
    127127
    128128    int cmf6_1(int, int, int, int, int, int) const { return 0; }
    129     int cmf6_2(int, int, int, int, int, int) const { return 0; }
     129    int cmf6_2(int, int, int, int, int, int) const { return 1; }
    130130
    131131    void mf6v_1(int, int, int, int, int, int) {}
    132     void mf6v_2(int, int, int, int, int, int) {}
     132    void mf6v_2(int, int, int, int, int, int) { static int i=0; ++i; }
    133133
    134134    void cmf6v_1(int, int, int, int, int, int) const {}
    135     void cmf6v_2(int, int, int, int, int, int) const {}
     135    void cmf6v_2(int, int, int, int, int, int) const { static int i=0; ++i; }
    136136
    137137    // 7
    138138
    139139    int mf7_1(int, int, int, int, int, int, int) { return 0; }
    140     int mf7_2(int, int, int, int, int, int, int) { return 0; }
     140    int mf7_2(int, int, int, int, int, int, int) { return 1; }
    141141
    142142    int cmf7_1(int, int, int, int, int, int, int) const { return 0; }
    143     int cmf7_2(int, int, int, int, int, int, int) const { return 0; }
     143    int cmf7_2(int, int, int, int, int, int, int) const { return 1; }
    144144
    145145    void mf7v_1(int, int, int, int, int, int, int) {}
    146     void mf7v_2(int, int, int, int, int, int, int) {}
     146    void mf7v_2(int, int, int, int, int, int, int) { static int i=0; ++i; }
    147147
    148148    void cmf7v_1(int, int, int, int, int, int, int) const {}
    149     void cmf7v_2(int, int, int, int, int, int, int) const {}
     149    void cmf7v_2(int, int, int, int, int, int, int) const { static int i=0; ++i; }
    150150
    151151    // 8
    152152
    153153    int mf8_1(int, int, int, int, int, int, int, int) { return 0; }
    154     int mf8_2(int, int, int, int, int, int, int, int) { return 0; }
     154    int mf8_2(int, int, int, int, int, int, int, int) { return 1; }
    155155
    156156    int cmf8_1(int, int, int, int, int, int, int, int) const { return 0; }
    157     int cmf8_2(int, int, int, int, int, int, int, int) const { return 0; }
     157    int cmf8_2(int, int, int, int, int, int, int, int) const { return 1; }
    158158
    159159    void mf8v_1(int, int, int, int, int, int, int, int) {}
    160     void mf8v_2(int, int, int, int, int, int, int, int) {}
     160    void mf8v_2(int, int, int, int, int, int, int, int) { static int i=0; ++i; }
    161161
    162162    void cmf8v_1(int, int, int, int, int, int, int, int) const {}
    163     void cmf8v_2(int, int, int, int, int, int, int, int) const {}
     163    void cmf8v_2(int, int, int, int, int, int, int, int) const { static int i=0; ++i; }
    164164
    165165};
    166166