diff options
Diffstat (limited to 'SolidityParser.cpp')
-rw-r--r-- | SolidityParser.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/SolidityParser.cpp b/SolidityParser.cpp index f18c530b..91e57130 100644 --- a/SolidityParser.cpp +++ b/SolidityParser.cpp @@ -525,6 +525,21 @@ BOOST_AUTO_TEST_CASE(contract_multiple_inheritance) BOOST_CHECK_NO_THROW(parseText(text)); } +BOOST_AUTO_TEST_CASE(contract_multiple_inheritance_with_arguments) +{ + char const* text = "contract base {\n" + " function fun() {\n" + " uint64(2);\n" + " }\n" + "}\n" + "contract derived is base(2), nonExisting(\"abc\", \"def\", base.fun()) {\n" + " function fun() {\n" + " uint64(2);\n" + " }\n" + "}\n"; + BOOST_CHECK_NO_THROW(parseText(text)); +} + BOOST_AUTO_TEST_SUITE_END() } |