mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Test that contracts separated by comments are compiled
This commit is contained in:
parent
eaab712944
commit
610027cd26
@ -8378,6 +8378,18 @@ BOOST_AUTO_TEST_CASE(inline_assembly_invalidjumplabel)
|
|||||||
BOOST_CHECK(callContractFunction("f()") == encodeArgs());
|
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()
|
BOOST_AUTO_TEST_SUITE_END()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user