diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-26 22:37:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-26 22:37:16 +0800 |
commit | 43002b7bb8973e02919f23dcea099cb9877e9579 (patch) | |
tree | 6270037929123b5a95038a6bd7f3b6a305d516ac /test/libsolidity/SolidityNatspecJSON.cpp | |
parent | 887823dca6e244d4dae84ca545fe3f0e8170b3d0 (diff) | |
parent | 30012db396793efad5dba9a2bbb64d34994709ce (diff) | |
download | dexon-solidity-43002b7bb8973e02919f23dcea099cb9877e9579.tar dexon-solidity-43002b7bb8973e02919f23dcea099cb9877e9579.tar.gz dexon-solidity-43002b7bb8973e02919f23dcea099cb9877e9579.tar.bz2 dexon-solidity-43002b7bb8973e02919f23dcea099cb9877e9579.tar.lz dexon-solidity-43002b7bb8973e02919f23dcea099cb9877e9579.tar.xz dexon-solidity-43002b7bb8973e02919f23dcea099cb9877e9579.tar.zst dexon-solidity-43002b7bb8973e02919f23dcea099cb9877e9579.zip |
Merge pull request #2599 from ethereum/compilerstack-cleanup
Cleanup compilerstack (remove old methods and clean compile)
Diffstat (limited to 'test/libsolidity/SolidityNatspecJSON.cpp')
-rw-r--r-- | test/libsolidity/SolidityNatspecJSON.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityNatspecJSON.cpp b/test/libsolidity/SolidityNatspecJSON.cpp index aa343561..be20a9f2 100644 --- a/test/libsolidity/SolidityNatspecJSON.cpp +++ b/test/libsolidity/SolidityNatspecJSON.cpp @@ -65,7 +65,9 @@ public: void expectNatspecError(std::string const& _code) { - BOOST_CHECK(!m_compilerStack.parseAndAnalyze(_code)); + m_compilerStack.reset(false); + m_compilerStack.addSource("", "pragma solidity >=0.0;\n" + _code); + BOOST_CHECK(!m_compilerStack.parseAndAnalyze()); BOOST_REQUIRE(Error::containsErrorOfType(m_compilerStack.errors(), Error::Type::DocstringParsingError)); } |