mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
parent
0a9eb64562
commit
0542df25df
@ -2513,6 +2513,15 @@ BOOST_AUTO_TEST_CASE(super_in_constructor)
|
|||||||
BOOST_CHECK(callContractFunction("f()") == encodeArgs(1 | 2 | 4 | 8));
|
BOOST_CHECK(callContractFunction("f()") == encodeArgs(1 | 2 | 4 | 8));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOST_AUTO_TEST_CASE(super_alone)
|
||||||
|
{
|
||||||
|
char const* sourceCode = R"(
|
||||||
|
contract A { function f() { super; } }
|
||||||
|
)";
|
||||||
|
compileAndRun(sourceCode, 0, "A");
|
||||||
|
BOOST_CHECK(callContractFunction("f()") == encodeArgs());
|
||||||
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(fallback_function)
|
BOOST_AUTO_TEST_CASE(fallback_function)
|
||||||
{
|
{
|
||||||
char const* sourceCode = R"(
|
char const* sourceCode = R"(
|
||||||
|
Loading…
Reference in New Issue
Block a user