diff options
author | chriseth <chris@ethereum.org> | 2018-02-24 02:29:42 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-03-02 00:19:35 +0800 |
commit | 1e26011d2cdb11b2df089fa97e2ab15ac329a45c (patch) | |
tree | 4023bccc96a8fe78089be527217f2f9007076ea6 /test/libsolidity/ViewPureChecker.cpp | |
parent | 05cc5f22b204a0c389e1de4feaa44d33492dd053 (diff) | |
download | dexon-solidity-1e26011d2cdb11b2df089fa97e2ab15ac329a45c.tar dexon-solidity-1e26011d2cdb11b2df089fa97e2ab15ac329a45c.tar.gz dexon-solidity-1e26011d2cdb11b2df089fa97e2ab15ac329a45c.tar.bz2 dexon-solidity-1e26011d2cdb11b2df089fa97e2ab15ac329a45c.tar.lz dexon-solidity-1e26011d2cdb11b2df089fa97e2ab15ac329a45c.tar.xz dexon-solidity-1e26011d2cdb11b2df089fa97e2ab15ac329a45c.tar.zst dexon-solidity-1e26011d2cdb11b2df089fa97e2ab15ac329a45c.zip |
Returndatasize and staticcall test fixes.
Diffstat (limited to 'test/libsolidity/ViewPureChecker.cpp')
-rw-r--r-- | test/libsolidity/ViewPureChecker.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/libsolidity/ViewPureChecker.cpp b/test/libsolidity/ViewPureChecker.cpp index f6b2c62e..35a0c7e5 100644 --- a/test/libsolidity/ViewPureChecker.cpp +++ b/test/libsolidity/ViewPureChecker.cpp @@ -425,7 +425,10 @@ BOOST_AUTO_TEST_CASE(assembly_staticcall) } } )"; - CHECK_WARNING(text, "only available after the Metropolis"); + if (dev::test::Options::get().evmVersion() == EVMVersion::homestead()) + CHECK_WARNING(text, "\"staticcall\" instruction is only available for Byzantium-compatible"); + else + CHECK_SUCCESS_NO_WARNINGS(text); } BOOST_AUTO_TEST_CASE(assembly_jump) |