From bc875f6b9c140d351ec8ae96d2c8e29979017d57 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 5 Dec 2017 10:44:28 +0000 Subject: Warn for assembly labels too --- test/libsolidity/InlineAssembly.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/libsolidity/InlineAssembly.cpp b/test/libsolidity/InlineAssembly.cpp index e9fb8431..506721c1 100644 --- a/test/libsolidity/InlineAssembly.cpp +++ b/test/libsolidity/InlineAssembly.cpp @@ -714,6 +714,7 @@ BOOST_AUTO_TEST_CASE(jump_warning) CHECK_PARSE_WARNING("{ 1 2 jumpi }", Warning, "Jump instructions"); CHECK_PARSE_WARNING("{ a: jump(a) }", Warning, "Jump instructions"); CHECK_PARSE_WARNING("{ a: jumpi(a, 2) }", Warning, "Jump instructions"); + CHECK_PARSE_WARNING("{ a: }", Warning, "Jump instructions"); } BOOST_AUTO_TEST_SUITE_END() -- cgit v1.2.3