Merge pull request #2265 from roadriverrail/inline_asm_unused_warning

Analyze InlineAssembly for variable use
This commit is contained in:
chriseth
2017-05-22 16:34:29 +02:00
committed by GitHub
4 changed files with 41 additions and 2 deletions
@@ -5718,6 +5718,20 @@ BOOST_AUTO_TEST_CASE(no_unused_dec_after_use)
CHECK_SUCCESS_NO_WARNINGS(text);
}
BOOST_AUTO_TEST_CASE(no_unused_inline_asm)
{
char const* text = R"(
contract C {
function f() {
uint a;
assembly {
a := 1
}
}
}
)";
CHECK_SUCCESS_NO_WARNINGS(text);
}