test: Add a test for #1215

using the original example from @pipermerriam
This commit is contained in:
Yoichi Hirai
2017-01-23 15:25:13 +01:00
parent 12b002b3b8
commit 5a56496db9
@@ -1365,6 +1365,17 @@ BOOST_AUTO_TEST_CASE(anonymous_event_too_many_indexed)
CHECK_ERROR(text, TypeError, "");
}
BOOST_AUTO_TEST_CASE(events_with_same_name)
{
char const* text = R"(
contract TestIt {
event A();
event A(uint i);
}
)";
BOOST_CHECK(success(text));
}
BOOST_AUTO_TEST_CASE(event_call)
{
char const* text = R"(