Constructor arguments for base classes.

This commit is contained in:
Christian
2015-01-19 23:35:04 +01:00
parent 2e846c495b
commit fe770957c6
+15
View File
@@ -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()
}