diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-04-12 20:57:14 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-04-12 20:57:14 +0800 |
commit | 6862f2294357d18a4640e95e3f9235692e6c055e (patch) | |
tree | 8676110f4e82de0cebf5a91bf4547aa499184823 /test/libsolidity/SolidityParser.cpp | |
parent | c3dc67d0e0c311a907e7a27e159f9159d78af949 (diff) | |
download | dexon-solidity-6862f2294357d18a4640e95e3f9235692e6c055e.tar.gz dexon-solidity-6862f2294357d18a4640e95e3f9235692e6c055e.tar.zst dexon-solidity-6862f2294357d18a4640e95e3f9235692e6c055e.zip |
Fix internal compiler error when parsing ``var`` declaration without identifier.
Diffstat (limited to 'test/libsolidity/SolidityParser.cpp')
-rw-r--r-- | test/libsolidity/SolidityParser.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/test/libsolidity/SolidityParser.cpp b/test/libsolidity/SolidityParser.cpp index 93e6bcaa..100b3662 100644 --- a/test/libsolidity/SolidityParser.cpp +++ b/test/libsolidity/SolidityParser.cpp @@ -557,16 +557,6 @@ BOOST_AUTO_TEST_CASE(variable_definition_with_initialization) BOOST_CHECK(successParse(text)); } -BOOST_AUTO_TEST_CASE(variable_definition_in_function_parameter) -{ - char const* text = R"( - contract test { - function fun(var a) {} - } - )"; - CHECK_PARSE_ERROR(text, "Expected explicit type name"); -} - BOOST_AUTO_TEST_CASE(variable_definition_in_mapping) { char const* text = R"( @@ -579,18 +569,6 @@ BOOST_AUTO_TEST_CASE(variable_definition_in_mapping) CHECK_PARSE_ERROR(text, "Expected elementary type name for mapping key type"); } -BOOST_AUTO_TEST_CASE(variable_definition_in_function_return) -{ - char const* text = R"( - contract test { - function fun() returns(var d) { - return 1; - } - } - )"; - CHECK_PARSE_ERROR(text, "Expected explicit type name"); -} - BOOST_AUTO_TEST_CASE(operator_expression) { char const* text = R"( |