mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix warning checking in test framework.
This commit is contained in:
@@ -4528,12 +4528,12 @@ BOOST_AUTO_TEST_CASE(warn_about_callcode)
|
||||
CHECK_WARNING(text, "\"callcode\" has been deprecated in favour");
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(no_warn_about_callcode_as_local)
|
||||
BOOST_AUTO_TEST_CASE(no_warn_about_callcode_as_function)
|
||||
{
|
||||
char const* text = R"(
|
||||
contract test {
|
||||
function callcode() {
|
||||
var x = this.callcode;
|
||||
test.callcode();
|
||||
}
|
||||
}
|
||||
)";
|
||||
@@ -6140,14 +6140,14 @@ BOOST_AUTO_TEST_CASE(does_not_error_transfer_regular_function)
|
||||
{
|
||||
char const* text = R"(
|
||||
contract A {
|
||||
function transfer(uint) {}
|
||||
function transfer() {}
|
||||
}
|
||||
|
||||
contract B {
|
||||
A a;
|
||||
|
||||
function() {
|
||||
a.transfer(100);
|
||||
a.transfer();
|
||||
}
|
||||
}
|
||||
)";
|
||||
|
||||
Reference in New Issue
Block a user