Ticket #8734: mem_fn_eq_test.cpp.patch
File mem_fn_eq_test.cpp.patch, 5.9 KB (added by , 9 years ago) |
---|
-
libs/bind/test/mem_fn_eq_test.cpp
39 39 // 0 40 40 41 41 int mf0_1() { return 0; } 42 int mf0_2() { return 0; }42 int mf0_2() { return 1; } 43 43 44 44 int cmf0_1() const { return 0; } 45 int cmf0_2() const { return 0; }45 int cmf0_2() const { return 1; } 46 46 47 47 void mf0v_1() {} 48 void mf0v_2() { }48 void mf0v_2() { static int i=0; ++i; } 49 49 50 50 void cmf0v_1() const {} 51 void cmf0v_2() const { }51 void cmf0v_2() const { static int i=0; ++i; } 52 52 53 53 // 1 54 54 55 55 int mf1_1(int) { return 0; } 56 int mf1_2(int) { return 0; }56 int mf1_2(int) { return 1; } 57 57 58 58 int cmf1_1(int) const { return 0; } 59 int cmf1_2(int) const { return 0; }59 int cmf1_2(int) const { return 1; } 60 60 61 61 void mf1v_1(int) {} 62 void mf1v_2(int) { }62 void mf1v_2(int) { static int i=0; ++i; } 63 63 64 64 void cmf1v_1(int) const {} 65 void cmf1v_2(int) const { }65 void cmf1v_2(int) const { static int i=0; ++i; } 66 66 67 67 // 2 68 68 69 69 int mf2_1(int, int) { return 0; } 70 int mf2_2(int, int) { return 0; }70 int mf2_2(int, int) { return 1; } 71 71 72 72 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; } 74 74 75 75 void mf2v_1(int, int) {} 76 void mf2v_2(int, int) { }76 void mf2v_2(int, int) { static int i=0; ++i; } 77 77 78 78 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; } 80 80 81 81 // 3 82 82 83 83 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; } 85 85 86 86 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; } 88 88 89 89 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; } 91 91 92 92 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; } 94 94 95 95 // 4 96 96 97 97 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; } 99 99 100 100 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; } 102 102 103 103 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; } 105 105 106 106 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; } 108 108 109 109 // 5 110 110 111 111 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; } 113 113 114 114 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; } 116 116 117 117 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; } 119 119 120 120 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; } 122 122 123 123 // 6 124 124 125 125 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; } 127 127 128 128 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; } 130 130 131 131 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; } 133 133 134 134 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; } 136 136 137 137 // 7 138 138 139 139 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; } 141 141 142 142 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; } 144 144 145 145 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; } 147 147 148 148 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; } 150 150 151 151 // 8 152 152 153 153 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; } 155 155 156 156 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; } 158 158 159 159 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; } 161 161 162 162 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; } 164 164 165 165 }; 166 166