mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add another transfer testcase.
This commit is contained in:
parent
2b33e0bcec
commit
c9b51e71bd
@ -6216,6 +6216,24 @@ BOOST_AUTO_TEST_CASE(does_not_error_transfer_payable_fallback)
|
|||||||
CHECK_SUCCESS_NO_WARNINGS(text);
|
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)
|
BOOST_AUTO_TEST_CASE(returndatacopy_as_variable)
|
||||||
{
|
{
|
||||||
char const* text = R"(
|
char const* text = R"(
|
||||||
|
Loading…
Reference in New Issue
Block a user