diff --git a/test/libsolidity/JSONCompiler.cpp b/test/libsolidity/JSONCompiler.cpp index b93aa0939..46c718d7a 100644 --- a/test/libsolidity/JSONCompiler.cpp +++ b/test/libsolidity/JSONCompiler.cpp @@ -26,6 +26,7 @@ #include #include "../Metadata.h" +#include "../TestHelper.h" using namespace std; @@ -46,7 +47,7 @@ namespace Json::Value compile(string const& _input) { - string output(compileJSONMulti(_input.c_str(), false)); + string output(compileJSONMulti(_input.c_str(), dev::test::Options::get().optimize)); Json::Value ret; BOOST_REQUIRE(Json::Reader().parse(output, ret, false)); return ret;