diff --git a/test/mip_test.cc b/test/mip_test.cc --- a/test/mip_test.cc +++ b/test/mip_test.cc @@ -106,6 +106,17 @@ } +template +void cloneTest() +{ + + MIP* mip = new MIP(); + MIP* mipnew = mip->newSolver(); + MIP* mipclone = mip->cloneSolver(); + delete mip; + delete mipnew; + delete mipclone; +} int main() { @@ -114,6 +125,7 @@ { GlpkMip mip1; aTest(mip1); + cloneTest(); } #endif @@ -129,6 +141,7 @@ std::cerr << "Cplex license check failed, lp check skipped" << std::endl; #endif } + cloneTest(); #endif return 0;