Add a parser test for arrays containing functions

This commit is contained in:
Yoichi Hirai
2016-11-16 14:37:17 +01:00
committed by chriseth
parent ab3d1b024d
commit 708b7b35ad
+10
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()