mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add a failing test as suggested in
https://github.com/ethereum/solidity/pull/2275#discussion_r121438333
This commit is contained in:
parent
a0f8c94dad
commit
a7241df4b7
@ -5793,6 +5793,15 @@ BOOST_AUTO_TEST_CASE(returndatacopy_as_variable)
|
|||||||
CHECK_WARNING_ALLOW_MULTI(text, "shadowed by an insturction of the same name");
|
CHECK_WARNING_ALLOW_MULTI(text, "shadowed by an insturction of the same name");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOST_AUTO_TEST_CASE(shadowing_warning_can_be_removed)
|
||||||
|
{
|
||||||
|
char const* text = R"(
|
||||||
|
contract C {function f() {assembly {}}}
|
||||||
|
)";
|
||||||
|
CHECK_SUCCESS_NO_WARNINGS(text);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
BOOST_AUTO_TEST_SUITE_END()
|
BOOST_AUTO_TEST_SUITE_END()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user