diff options
author | chriseth <c@ethdev.com> | 2015-03-31 01:33:30 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-03-31 01:33:30 +0800 |
commit | ea98b3b07e30efdb8b146a1ad82006d2f1d949e2 (patch) | |
tree | d2eab70f25c17e23bdd48fdf4ddfc2df777828c6 /SolidityParser.cpp | |
parent | 735c02c468de32b4f91c59794039b67ab29a8170 (diff) | |
parent | de09be29ba80486b7fddafef4b740d5093d0c726 (diff) | |
download | dexon-solidity-ea98b3b07e30efdb8b146a1ad82006d2f1d949e2.tar dexon-solidity-ea98b3b07e30efdb8b146a1ad82006d2f1d949e2.tar.gz dexon-solidity-ea98b3b07e30efdb8b146a1ad82006d2f1d949e2.tar.bz2 dexon-solidity-ea98b3b07e30efdb8b146a1ad82006d2f1d949e2.tar.lz dexon-solidity-ea98b3b07e30efdb8b146a1ad82006d2f1d949e2.tar.xz dexon-solidity-ea98b3b07e30efdb8b146a1ad82006d2f1d949e2.tar.zst dexon-solidity-ea98b3b07e30efdb8b146a1ad82006d2f1d949e2.zip |
Merge pull request #1414 from LefterisJP/sol_notImplementedFuncs
Interface contracts
Diffstat (limited to 'SolidityParser.cpp')
-rw-r--r-- | SolidityParser.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/SolidityParser.cpp b/SolidityParser.cpp index 392d9ac4..7640f91a 100644 --- a/SolidityParser.cpp +++ b/SolidityParser.cpp @@ -108,6 +108,14 @@ BOOST_AUTO_TEST_CASE(single_function_param) ETH_TEST_CHECK_NO_THROW(parseText(text), "Parsing failed."); } +BOOST_AUTO_TEST_CASE(function_no_body) +{ + char const* text = "contract test {\n" + " function functionName(bytes32 input) returns (bytes32 out);\n" + "}\n"; + ETH_TEST_CHECK_NO_THROW(parseText(text), "Parsing failed."); +} + BOOST_AUTO_TEST_CASE(missing_parameter_name_in_named_args) { char const* text = "contract test {\n" |