Skip to content

Commit

Permalink
Ignore shift warnings on constantinople tests
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Apr 10, 2018
1 parent 4450034 commit 2e73ef5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/libsolidity/InlineAssembly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit 2e73ef5

Please sign in to comment.