aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-10-14 23:46:48 +0800
committerchriseth <c@ethdev.com>2016-11-16 21:37:17 +0800
commit708b7b35adc337500b9c42832f4a5461e7579e55 (patch)
treed381b02b8c653e34a9c2aa8635b4b093c50e5c76 /test
parentab3d1b024db6e208e4b63e2ecb07754af1540d6f (diff)
downloaddexon-solidity-708b7b35adc337500b9c42832f4a5461e7579e55.tar.gz
dexon-solidity-708b7b35adc337500b9c42832f4a5461e7579e55.tar.zst
dexon-solidity-708b7b35adc337500b9c42832f4a5461e7579e55.zip
Add a parser test for arrays containing functions
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/SolidityParser.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityParser.cpp b/test/libsolidity/SolidityParser.cpp
index d8c6fa10..b1b1d858 100644
--- a/test/libsolidity/SolidityParser.cpp
+++ b/test/libsolidity/SolidityParser.cpp
@@ -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()