Skip to content

Commit

Permalink
Add a failing test as suggested in
Browse files Browse the repository at this point in the history
  • Loading branch information
pirapira committed Jun 13, 2017
1 parent 2eecce9 commit 2433c60
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/libsolidity/SolidityNameAndTypeResolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5793,6 +5793,15 @@ 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");
}

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()

Expand Down

0 comments on commit 2433c60

Please sign in to comment.