| 158 | // ---------------------------------------------------------------------------------------- |
| 159 | |
| 160 | void run_test3() |
| 161 | { |
| 162 | any_function<void(int&)> f1; |
| 163 | any_function<void(int&,int&)> f2; |
| 164 | any_function<void(int&,int&,int&)> f3; |
| 165 | any_function<void(int&,int&,int&,int&)> f4; |
| 166 | any_function<void(int&,int&,int&,int&,int&)> f5; |
| 167 | any_function<void(int&,int&,int&,int&,int&,int&)> f6; |
| 168 | any_function<void(int&,int&,int&,int&,int&,int&,int&)> f7; |
| 169 | any_function<void(int&,int&,int&,int&,int&,int&,int&,int&)> f8; |
| 170 | any_function<void(int&,int&,int&,int&,int&,int&,int&,int&,int&)> f9; |
| 171 | any_function<void(int&,int&,int&,int&,int&,int&,int&,int&,int&,int&)> f10; |
| 172 | |
| 173 | f1 = set_vals1; |
| 174 | f2 = set_vals2; |
| 175 | f3 = set_vals3; |
| 176 | f4 = set_vals4; |
| 177 | f5 = set_vals5; |
| 178 | f6 = set_vals6; |
| 179 | f7 = set_vals7; |
| 180 | f8 = set_vals8; |
| 181 | f9 = set_vals9; |
| 182 | f10 = set_vals10; |
| 183 | |
| 184 | int a,b,c,d,e,f,g,h,i,j; |
| 185 | |
| 186 | zero_vals(a,b,c,d,e,f,g,h,i,j); |
| 187 | |
| 188 | f1(a); |
| 189 | DLIB_TEST(a==1); |
| 190 | zero_vals(a,b,c,d,e,f,g,h,i,j); |
| 191 | |
| 192 | f2(a,b); |
| 193 | DLIB_TEST(a==1 && b==2); |
| 194 | zero_vals(a,b,c,d,e,f,g,h,i,j); |
| 195 | |
| 196 | f3(a,b,c); |
| 197 | DLIB_TEST(a==1 && b==2 && c==3); |
| 198 | zero_vals(a,b,c,d,e,f,g,h,i,j); |
| 199 | |
| 200 | f4(a,b,c,d); |
| 201 | DLIB_TEST(a==1 && b==2 && c==3 && d==4); |
| 202 | zero_vals(a,b,c,d,e,f,g,h,i,j); |
| 203 | |
| 204 | f5(a,b,c,d,e); |
| 205 | DLIB_TEST(a==1 && b==2 && c==3 && d==4 && e==5); |
| 206 | zero_vals(a,b,c,d,e,f,g,h,i,j); |
| 207 | |
| 208 | f6(a,b,c,d,e,f); |
| 209 | DLIB_TEST(a==1 && b==2 && c==3 && d==4 && e==5 && f==6); |
| 210 | zero_vals(a,b,c,d,e,f,g,h,i,j); |
| 211 | |
| 212 | f7(a,b,c,d,e,f,g); |
| 213 | DLIB_TEST(a==1 && b==2 && c==3 && d==4 && e==5 && f==6 && g==7); |
| 214 | zero_vals(a,b,c,d,e,f,g,h,i,j); |
| 215 | |
| 216 | f8(a,b,c,d,e,f,g,h); |
| 217 | DLIB_TEST(a==1 && b==2 && c==3 && d==4 && e==5 && f==6 && g==7 && h==8); |
no test coverage detected