aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/InlineAssembly.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-12-07 19:21:52 +0800
committerGitHub <noreply@github.com>2017-12-07 19:21:52 +0800
commit316e4089b3c2317abdf1c5b43e214d1f69e16160 (patch)
tree637d4e153c17c88d0d38a3163f8eefff2ad51039 /test/libsolidity/InlineAssembly.cpp
parent1343770dfe2f2231d1180dc41ff42164172bbeec (diff)
parentd57afb20fa32be3d5575b8c5dcd98f39ce4e90d0 (diff)
downloaddexon-solidity-316e4089b3c2317abdf1c5b43e214d1f69e16160.tar
dexon-solidity-316e4089b3c2317abdf1c5b43e214d1f69e16160.tar.gz
dexon-solidity-316e4089b3c2317abdf1c5b43e214d1f69e16160.tar.bz2
dexon-solidity-316e4089b3c2317abdf1c5b43e214d1f69e16160.tar.lz
dexon-solidity-316e4089b3c2317abdf1c5b43e214d1f69e16160.tar.xz
dexon-solidity-316e4089b3c2317abdf1c5b43e214d1f69e16160.tar.zst
dexon-solidity-316e4089b3c2317abdf1c5b43e214d1f69e16160.zip
Merge pull request #3283 from ethereum/jump-warning
Improve the jump warning
Diffstat (limited to 'test/libsolidity/InlineAssembly.cpp')
-rw-r--r--test/libsolidity/InlineAssembly.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/libsolidity/InlineAssembly.cpp b/test/libsolidity/InlineAssembly.cpp
index e9fb8431..82bafd49 100644
--- a/test/libsolidity/InlineAssembly.cpp
+++ b/test/libsolidity/InlineAssembly.cpp
@@ -712,8 +712,9 @@ BOOST_AUTO_TEST_CASE(jump_warning)
{
CHECK_PARSE_WARNING("{ 1 jump }", Warning, "Jump instructions");
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("{ jump(44) }", Warning, "Jump instructions");
+ CHECK_PARSE_WARNING("{ jumpi(44, 2) }", Warning, "Jump instructions");
+ CHECK_PARSE_WARNING("{ a: }", Warning, "Jump instructions");
}
BOOST_AUTO_TEST_SUITE_END()