mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Run in optimizer mode when requested
This commit is contained in:
parent
31bd4acf66
commit
41b5361b3f
@ -26,6 +26,7 @@
|
|||||||
#include <libdevcore/JSON.h>
|
#include <libdevcore/JSON.h>
|
||||||
|
|
||||||
#include "../Metadata.h"
|
#include "../Metadata.h"
|
||||||
|
#include "../TestHelper.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
@ -46,7 +47,7 @@ namespace
|
|||||||
|
|
||||||
Json::Value compile(string const& _input)
|
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;
|
Json::Value ret;
|
||||||
BOOST_REQUIRE(Json::Reader().parse(output, ret, false));
|
BOOST_REQUIRE(Json::Reader().parse(output, ret, false));
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user