Add a failing test as suggested in

https://github.com/ethereum/solidity/pull/2275#discussion_r121438333
This commit is contained in:
Yoichi Hirai 2017-06-13 16:25:52 +02:00
parent a0f8c94dad
commit a7241df4b7
No known key found for this signature in database
GPG Key ID: E7B75D080FCF7992

View File

@ -5793,6 +5793,15 @@ BOOST_AUTO_TEST_CASE(returndatacopy_as_variable)
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()