test: add a failing test case about the gas cost of SUICIDE opcode

This commit is contained in:
Yoichi Hirai
2017-04-25 16:14:58 +02:00
committed by chriseth
parent 00b15d53b9
commit 259c551c61
+13
View File
@@ -278,6 +278,19 @@ BOOST_AUTO_TEST_CASE(balance_gas)
testRunTimeGas("f(uint256)", vector<bytes>{encodeArgs(2), encodeArgs(100)});
}
BOOST_AUTO_TEST_CASE(selfdestruct_gas)
{
char const* sourceCode = R"(
contract A {
function f() {
selfdestruct(0x30);
}
}
)";
testCreationTimeGas(sourceCode);
testRunTimeGas("f()", vector<bytes>{encodeArgs()});
}
BOOST_AUTO_TEST_SUITE_END()
}