Cleanup, style and additional test.

This commit is contained in:
chriseth
2017-05-03 11:26:21 +02:00
parent e3ed3623c7
commit 230f51efb7
3 changed files with 17 additions and 13 deletions
@@ -5656,6 +5656,14 @@ BOOST_AUTO_TEST_CASE(warn_unused_return_param)
}
)";
CHECK_WARNING(text, "Unused");
text = R"(
contract C {
function f() returns (uint a) {
return;
}
}
)";
CHECK_WARNING(text, "Unused");
text = R"(
contract C {
function f() returns (uint) {
@@ -5699,8 +5707,8 @@ BOOST_AUTO_TEST_CASE(no_unused_dec_after_use)
char const* text = R"(
contract C {
function f() {
a = 7;
uint a;
a = 7;
uint a;
}
}
)";