diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2020-06-08 16:38:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-08 18:38:47 -0500 |
commit | f515641c3b078185743aed831e2fe6c2759341fb (patch) | |
tree | d6737671afc5c6adcda58a11510f3c64d3733b4e /test/unit | |
parent | c56b38ed806e524614da8500ac435364249f4215 (diff) |
Fix ambiguous overload in unit test (#4582)
Fixes nightlies. The compiler version used for our nightlies (GCC 5.4.0)
complains about mkFunctionSort({bSort}, bSort) being ambiguous because
we have two variants of mkFunctionSort(): one that takes a single
Sort and one that takes a vector of Sorts. This commit makes the
function call unambiguous by removing the use of list initializations.
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/api/solver_black.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/api/solver_black.h b/test/unit/api/solver_black.h index 257c28669..d53ef8303 100644 --- a/test/unit/api/solver_black.h +++ b/test/unit/api/solver_black.h @@ -1042,7 +1042,7 @@ void SolverBlack::testDefineFun() void SolverBlack::testDefineFunGlobal() { Sort bSort = d_solver->getBooleanSort(); - Sort fSort = d_solver->mkFunctionSort({bSort}, bSort); + Sort fSort = d_solver->mkFunctionSort(bSort, bSort); Term bTrue = d_solver->mkBoolean(true); // (define-fun f () Bool true) @@ -1120,7 +1120,7 @@ void SolverBlack::testDefineFunRec() void SolverBlack::testDefineFunRecGlobal() { Sort bSort = d_solver->getBooleanSort(); - Sort fSort = d_solver->mkFunctionSort({bSort}, bSort); + Sort fSort = d_solver->mkFunctionSort(bSort, bSort); d_solver->push(); Term bTrue = d_solver->mkBoolean(true); @@ -1217,7 +1217,7 @@ void SolverBlack::testDefineFunsRec() void SolverBlack::testDefineFunsRecGlobal() { Sort bSort = d_solver->getBooleanSort(); - Sort fSort = d_solver->mkFunctionSort({bSort}, bSort); + Sort fSort = d_solver->mkFunctionSort(bSort, bSort); d_solver->push(); Term bTrue = d_solver->mkBoolean(true); |