aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityNatspecJSON.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-07-26 22:37:16 +0800
committerGitHub <noreply@github.com>2017-07-26 22:37:16 +0800
commit43002b7bb8973e02919f23dcea099cb9877e9579 (patch)
tree6270037929123b5a95038a6bd7f3b6a305d516ac /test/libsolidity/SolidityNatspecJSON.cpp
parent887823dca6e244d4dae84ca545fe3f0e8170b3d0 (diff)
parent30012db396793efad5dba9a2bbb64d34994709ce (diff)
downloaddexon-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.cpp4
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));
}