mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Additional test.
This commit is contained in:
parent
a921bd0ae4
commit
2b3b00776e
@ -5793,6 +5793,14 @@ BOOST_AUTO_TEST_CASE(returndatacopy_as_variable)
|
|||||||
CHECK_WARNING_ALLOW_MULTI(text, "Variable is shadowed in inline assembly by an instruction of the same name");
|
CHECK_WARNING_ALLOW_MULTI(text, "Variable is shadowed in inline assembly by an instruction of the same name");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOST_AUTO_TEST_CASE(create2_as_variable)
|
||||||
|
{
|
||||||
|
char const* text = R"(
|
||||||
|
contract c { function f() { uint create2; assembly { create2(0, 0, 0, 0) }}}
|
||||||
|
)";
|
||||||
|
CHECK_WARNING_ALLOW_MULTI(text, "Variable is shadowed in inline assembly by an instruction of the same name");
|
||||||
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(shadowing_warning_can_be_removed)
|
BOOST_AUTO_TEST_CASE(shadowing_warning_can_be_removed)
|
||||||
{
|
{
|
||||||
char const* text = R"(
|
char const* text = R"(
|
||||||
|
Loading…
Reference in New Issue
Block a user