aboutsummaryrefslogtreecommitdiffstats
path: root/test/buglist_test_vectors.md
diff options
context:
space:
mode:
authorLeonardo Alt <leo@ethereum.org>2018-08-03 19:55:44 +0800
committerchriseth <chris@ethereum.org>2018-08-14 21:57:38 +0800
commit55e67e41f9356e4953a57d8a15808e1c7d391686 (patch)
tree368286d5f45ab87bf91a054a5ce20ea7dd918662 /test/buglist_test_vectors.md
parente1bb6848976c7a54baa19e3e61f9aeeb58f55f5a (diff)
downloaddexon-solidity-55e67e41f9356e4953a57d8a15808e1c7d391686.tar
dexon-solidity-55e67e41f9356e4953a57d8a15808e1c7d391686.tar.gz
dexon-solidity-55e67e41f9356e4953a57d8a15808e1c7d391686.tar.bz2
dexon-solidity-55e67e41f9356e4953a57d8a15808e1c7d391686.tar.lz
dexon-solidity-55e67e41f9356e4953a57d8a15808e1c7d391686.tar.xz
dexon-solidity-55e67e41f9356e4953a57d8a15808e1c7d391686.tar.zst
dexon-solidity-55e67e41f9356e4953a57d8a15808e1c7d391686.zip
Update bug list and add regular expression to bug list and add test.
Diffstat (limited to 'test/buglist_test_vectors.md')
-rw-r--r--test/buglist_test_vectors.md69
1 files changed, 69 insertions, 0 deletions
diff --git a/test/buglist_test_vectors.md b/test/buglist_test_vectors.md
new file mode 100644
index 00000000..ce95403b
--- /dev/null
+++ b/test/buglist_test_vectors.md
@@ -0,0 +1,69 @@
+# NestedArrayFunctionCallDecoder
+
+## buggy
+
+function f() pure returns (uint[2][2]) { }
+
+--
+
+function f() returns (uint[2][2] a) { }
+
+--
+
+function f() returns (uint x, uint[200][2] a) { }
+
+--
+
+function f() returns (uint[200][2] a, uint x) { }
+
+--
+
+function f() returns (uint[200][2] a, uint x);
+
+--
+
+function f() returns (
+ uint
+ [
+ 200
+ ]
+ [2]
+ a, uint x);
+
+--
+
+function f() returns (
+ uint
+ [
+ ContractName.ConstantName
+ ]
+ [2]
+ a, uint x);
+
+## fine
+
+function f() returns (uint[2]) { }
+
+--
+
+function f() public pure returns (uint[2][] a) { }
+
+--
+
+function f() public pure returns (uint[ 2 ] [ ] a) { }
+
+--
+
+function f() public pure returns (uint x, uint[] a) { }
+
+--
+
+function f(uint[2][2]) { }
+
+--
+
+function f() m(uint[2][2]) { }
+
+--
+
+function f() returns (uint, uint) { uint[2][2] memory x; }