Test that contracts separated by comments are compiled

This commit is contained in:
Alex Beregszaszi 2016-11-30 23:54:02 +00:00
parent eaab712944
commit 610027cd26

View File

@ -8378,6 +8378,18 @@ BOOST_AUTO_TEST_CASE(inline_assembly_invalidjumplabel)
BOOST_CHECK(callContractFunction("f()") == encodeArgs());
}
BOOST_AUTO_TEST_CASE(contracts_separated_with_comment)
{
char const* sourceCode = R"(
contract C1 {}
/**
**/
contract C2 {}
)";
compileAndRun(sourceCode, 0, "C1");
compileAndRun(sourceCode, 0, "C2");
}
BOOST_AUTO_TEST_SUITE_END()
}