test: Add a test for #1215

using the original example from @pipermerriam
This commit is contained in:
Yoichi Hirai 2016-10-18 14:51:49 +02:00
parent 12b002b3b8
commit 5a56496db9
No known key found for this signature in database
GPG Key ID: E7B75D080FCF7992

View File

@ -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"(