Merge pull request #2569 from ethereum/transferToTransfer

Add another transfer testcase.
This commit is contained in:
Alex Beregszaszi 2017-07-13 16:20:11 +02:00 committed by GitHub
commit 32247fd028

View File

@ -6216,6 +6216,24 @@ BOOST_AUTO_TEST_CASE(does_not_error_transfer_payable_fallback)
CHECK_SUCCESS_NO_WARNINGS(text);
}
BOOST_AUTO_TEST_CASE(does_not_error_transfer_regular_function)
{
char const* text = R"(
contract A {
function transfer(uint) {}
}
contract B {
A a;
function() {
a.transfer(100);
}
}
)";
CHECK_SUCCESS_NO_WARNINGS(text);
}
BOOST_AUTO_TEST_CASE(returndatacopy_as_variable)
{
char const* text = R"(