aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-10-18 20:51:49 +0800
committerYoichi Hirai <i@yoichihirai.com>2017-01-23 22:25:13 +0800
commit5a56496db9266b0ee97a1ca71bb5e5ca902475af (patch)
treec7f42614073f1f4642cbe3ee430f8e42a5d5d92c /test/libsolidity
parent12b002b3b8575539f332c30691e880bcc2fac5bc (diff)
downloaddexon-solidity-5a56496db9266b0ee97a1ca71bb5e5ca902475af.tar.gz
dexon-solidity-5a56496db9266b0ee97a1ca71bb5e5ca902475af.tar.zst
dexon-solidity-5a56496db9266b0ee97a1ca71bb5e5ca902475af.zip
test: Add a test for #1215
using the original example from @pipermerriam
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/SolidityNameAndTypeResolution.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp
index 9f6ea2b3..6b9d50a9 100644
--- a/test/libsolidity/SolidityNameAndTypeResolution.cpp
+++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp
@@ -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"(