From 230f51efb7da7cc4f8e03027b958aee8f3346914 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 2 May 2017 17:14:42 +0200 Subject: Cleanup, style and additional test. --- test/libsolidity/SolidityNameAndTypeResolution.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'test/libsolidity') diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index ace8ef46..fd50609d 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -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; } } )"; -- cgit