Add a parser test for arrays containing functions

This commit is contained in:
Yoichi Hirai 2016-10-14 17:46:48 +02:00 committed by chriseth
parent ab3d1b024d
commit 708b7b35ad

View File

@ -1325,6 +1325,16 @@ BOOST_AUTO_TEST_CASE(calling_function)
BOOST_CHECK(successParse(text));
}
BOOST_AUTO_TEST_CASE(array_of_functions)
{
char const* text = R"(
contract test {
mapping (address => function() internal returns ()) stages;
}
)";
BOOST_CHECK(successParse(text));
}
BOOST_AUTO_TEST_SUITE_END()