diff options
author | CJentzsch <jentzsch.software@gmail.com> | 2015-04-02 17:06:56 +0800 |
---|---|---|
committer | CJentzsch <jentzsch.software@gmail.com> | 2015-04-02 17:06:56 +0800 |
commit | 125ca1d2702da04ff5b6e515d6193a832b80e1f2 (patch) | |
tree | 70f95d9fd8ce913550dc6415927551e684a6f868 /SolidityParser.cpp | |
parent | 32d5c950401504e3591ad41ee93459730c1a9ad8 (diff) | |
parent | 9d734e03fd085a3cbd1a403bd63e51da19e165b5 (diff) | |
download | dexon-solidity-125ca1d2702da04ff5b6e515d6193a832b80e1f2.tar dexon-solidity-125ca1d2702da04ff5b6e515d6193a832b80e1f2.tar.gz dexon-solidity-125ca1d2702da04ff5b6e515d6193a832b80e1f2.tar.bz2 dexon-solidity-125ca1d2702da04ff5b6e515d6193a832b80e1f2.tar.lz dexon-solidity-125ca1d2702da04ff5b6e515d6193a832b80e1f2.tar.xz dexon-solidity-125ca1d2702da04ff5b6e515d6193a832b80e1f2.tar.zst dexon-solidity-125ca1d2702da04ff5b6e515d6193a832b80e1f2.zip |
Merge remote-tracking branch 'upstream/develop' into addTests
Conflicts:
test/ttTransactionTestFiller.json
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" |