diff options
author | chriseth <chris@ethereum.org> | 2017-07-13 21:10:34 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-07-13 21:10:34 +0800 |
commit | c9b51e71bd234ee9bb5efd4a34c68e4b03616076 (patch) | |
tree | 99b02456db014c1ced557af93e583f521557e05c /test/libsolidity | |
parent | 2b33e0bcecdb2afe6a7ea242bce83480bb50a071 (diff) | |
download | dexon-solidity-c9b51e71bd234ee9bb5efd4a34c68e4b03616076.tar.gz dexon-solidity-c9b51e71bd234ee9bb5efd4a34c68e4b03616076.tar.zst dexon-solidity-c9b51e71bd234ee9bb5efd4a34c68e4b03616076.zip |
Add another transfer testcase.
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index f6f8b8c9..472f1b97 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -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"( |