aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityEndToEndTest.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-08-04 20:43:15 +0800
committerGitHub <noreply@github.com>2017-08-04 20:43:15 +0800
commit38e9505a83ed9b37ce91b8cd1ec268fc96be50cc (patch)
treec63973bc6d009a2a701a1e4cc9760a63fbfb9e20 /test/libsolidity/SolidityEndToEndTest.cpp
parente48730fed95d6b6cc8a8b46f6b96d309526baea9 (diff)
parentb7642dc8a7ef54abf6f37fddefc118ca1108b0ae (diff)
downloaddexon-solidity-38e9505a83ed9b37ce91b8cd1ec268fc96be50cc.tar.gz
dexon-solidity-38e9505a83ed9b37ce91b8cd1ec268fc96be50cc.tar.zst
dexon-solidity-38e9505a83ed9b37ce91b8cd1ec268fc96be50cc.zip
Merge pull request #2673 from ethereum/builtin-gas
Disallow gas modifier on sha256/ripemd160/ecrecover
Diffstat (limited to 'test/libsolidity/SolidityEndToEndTest.cpp')
-rw-r--r--test/libsolidity/SolidityEndToEndTest.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp
index e6c816f4..d0c5285c 100644
--- a/test/libsolidity/SolidityEndToEndTest.cpp
+++ b/test/libsolidity/SolidityEndToEndTest.cpp
@@ -2399,21 +2399,6 @@ BOOST_AUTO_TEST_CASE(gas_and_value_basic)
BOOST_REQUIRE(callContractFunction("checkState()") == encodeArgs(false, 20 - 5));
}
-BOOST_AUTO_TEST_CASE(gas_for_builtin)
-{
- char const* sourceCode = R"(
- contract Contract {
- function test(uint g) returns (bytes32 data, bool flag) {
- data = ripemd160.gas(g)("abc");
- flag = true;
- }
- }
- )";
- compileAndRun(sourceCode);
- BOOST_CHECK(callContractFunction("test(uint256)", 500) == bytes());
- BOOST_CHECK(callContractFunction("test(uint256)", 800) == encodeArgs(u256("0x8eb208f7e05d987a9b044a8e98c6b087f15a0bfc000000000000000000000000"), true));
-}
-
BOOST_AUTO_TEST_CASE(value_complex)
{
char const* sourceCode = R"(