diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2016-10-14 23:46:48 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-11-16 21:37:17 +0800 |
commit | 708b7b35adc337500b9c42832f4a5461e7579e55 (patch) | |
tree | d381b02b8c653e34a9c2aa8635b4b093c50e5c76 /test | |
parent | ab3d1b024db6e208e4b63e2ecb07754af1540d6f (diff) | |
download | dexon-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.cpp | 10 |
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() |