aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-04-06 20:48:17 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-04-10 22:29:55 +0800
commit2e73ef5ac5db406e86e3a90c89d3be4b0d666073 (patch)
tree030c871348a0cd8c19173dff9606018fd5f65703 /test/libsolidity
parent44500341748070bd1ad97046b915bf2c76b1eb9b (diff)
downloaddexon-solidity-2e73ef5ac5db406e86e3a90c89d3be4b0d666073.tar.gz
dexon-solidity-2e73ef5ac5db406e86e3a90c89d3be4b0d666073.tar.zst
dexon-solidity-2e73ef5ac5db406e86e3a90c89d3be4b0d666073.zip
Ignore shift warnings on constantinople tests
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/InlineAssembly.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/libsolidity/InlineAssembly.cpp b/test/libsolidity/InlineAssembly.cpp
index 34ca33e3..0ced1792 100644
--- a/test/libsolidity/InlineAssembly.cpp
+++ b/test/libsolidity/InlineAssembly.cpp
@@ -783,6 +783,8 @@ BOOST_AUTO_TEST_CASE(shift)
BOOST_AUTO_TEST_CASE(shift_constantinople_warning)
{
+ if (dev::test::Options::get().evmVersion().hasBitwiseShifting())
+ return;
CHECK_PARSE_WARNING("{ pop(shl(10, 32)) }", Warning, "The \"shl\" instruction is only available for Constantinople-compatible VMs.");
CHECK_PARSE_WARNING("{ pop(shr(10, 32)) }", Warning, "The \"shr\" instruction is only available for Constantinople-compatible VMs.");
CHECK_PARSE_WARNING("{ pop(sar(10, 32)) }", Warning, "The \"sar\" instruction is only available for Constantinople-compatible VMs.");