aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/JSONCompiler.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-05-06 17:48:02 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-05-06 18:28:46 +0800
commit41b5361b3f9ef267fa2e5bbbc44b46a315e9b01a (patch)
tree1947449ca159237195c9c486339df8f2923c083f /test/libsolidity/JSONCompiler.cpp
parent31bd4acf66f212bf6e0c1327fa2ef227ba45100b (diff)
downloaddexon-solidity-41b5361b3f9ef267fa2e5bbbc44b46a315e9b01a.tar.gz
dexon-solidity-41b5361b3f9ef267fa2e5bbbc44b46a315e9b01a.tar.zst
dexon-solidity-41b5361b3f9ef267fa2e5bbbc44b46a315e9b01a.zip
Run in optimizer mode when requested
Diffstat (limited to 'test/libsolidity/JSONCompiler.cpp')
-rw-r--r--test/libsolidity/JSONCompiler.cpp3
1 files changed, 2 insertions, 1 deletions
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 <libdevcore/JSON.h>
#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;