aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityNatspecJSON.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-07-17 18:43:56 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-26 22:05:16 +0800
commitfa5a7efb45de72d0a83e2e0bdb9b967f76f0c070 (patch)
tree74e9fb9da86133e7a28ce0da4d56dc74c05a714b /test/libsolidity/SolidityNatspecJSON.cpp
parent887823dca6e244d4dae84ca545fe3f0e8170b3d0 (diff)
downloaddexon-solidity-fa5a7efb45de72d0a83e2e0bdb9b967f76f0c070.tar.gz
dexon-solidity-fa5a7efb45de72d0a83e2e0bdb9b967f76f0c070.tar.zst
dexon-solidity-fa5a7efb45de72d0a83e2e0bdb9b967f76f0c070.zip
Remove unused interfaces from CompilerStack
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));
}