[test] AnalysisFramework's instance of CompilerStack to be lazily instanciated.

This commit is contained in:
Christian Parpart
2019-04-16 18:25:03 +02:00
committed by chriseth
parent 94053c9a52
commit 862d798047
5 changed files with 38 additions and 20 deletions
@@ -436,7 +436,7 @@ BOOST_AUTO_TEST_CASE(getter_is_memory_type)
)";
CHECK_SUCCESS_NO_WARNINGS(text);
// Check that the getters return a memory strings, not a storage strings.
ContractDefinition const& c = dynamic_cast<ContractDefinition const&>(*m_compiler.ast("").nodes().at(1));
ContractDefinition const& c = dynamic_cast<ContractDefinition const&>(*compiler().ast("").nodes().at(1));
BOOST_CHECK(c.interfaceFunctions().size() == 2);
for (auto const& f: c.interfaceFunctions())
{