From 41b5361b3f9ef267fa2e5bbbc44b46a315e9b01a Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Sat, 6 May 2017 10:48:02 +0100 Subject: Run in optimizer mode when requested --- test/libsolidity/JSONCompiler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/libsolidity/JSONCompiler.cpp b/test/libsolidity/JSONCompiler.cpp index b93aa093..46c718d7 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; -- cgit