mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Warn for assembly labels too
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user