aboutsummaryrefslogtreecommitdiffstats
path: root/test/buglist_test_vectors.md
diff options
context:
space:
mode:
authorLeonardo Alt <leo@ethereum.org>2018-08-21 22:09:53 +0800
committerLeonardo Alt <leo@ethereum.org>2018-09-07 00:42:21 +0800
commit9927964d218ac234e50c1818be655d92b3b2887b (patch)
treea20c19fa0881cc9baee22cc1f5580e8d16c8019e /test/buglist_test_vectors.md
parentc57a60833d96f9f6a568c3b85b9b6edecee8fe4a (diff)
downloaddexon-solidity-9927964d218ac234e50c1818be655d92b3b2887b.tar.gz
dexon-solidity-9927964d218ac234e50c1818be655d92b3b2887b.tar.zst
dexon-solidity-9927964d218ac234e50c1818be655d92b3b2887b.zip
Buglist check script supports json paths
Diffstat (limited to 'test/buglist_test_vectors.md')
-rw-r--r--test/buglist_test_vectors.md45
1 files changed, 45 insertions, 0 deletions
diff --git a/test/buglist_test_vectors.md b/test/buglist_test_vectors.md
index ce95403b..f15cf151 100644
--- a/test/buglist_test_vectors.md
+++ b/test/buglist_test_vectors.md
@@ -67,3 +67,48 @@ function f() m(uint[2][2]) { }
--
function f() returns (uint, uint) { uint[2][2] memory x; }
+
+# EventStructWrongData
+
+## buggy
+
+pragma experimental ABIEncoderV2;
+contract C
+{
+ struct S { uint x; }
+ event E(S);
+ event F(S);
+ enum A { B, C }
+ event G(A);
+ function f(S s);
+}
+
+--
+
+pragma experimental ABIEncoderV2;
+contract C
+{
+ struct S { uint x; }
+ event E(S indexed);
+ event F(uint, S, bool);
+}
+
+## fine
+
+pragma experimental ABIEncoderV2;
+contract C
+{
+ struct S { uint x; }
+ enum A { B, C }
+ event G(A);
+}
+
+--
+
+pragma experimental ABIEncoderV2;
+contract C
+{
+ struct S { uint x; }
+ function f(S s);
+ S s1;
+}