aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorRJ Catalano <catalanor0220@gmail.com>2015-12-16 00:57:57 +0800
committerRJ Catalano <catalanor0220@gmail.com>2015-12-16 00:57:57 +0800
commit42c43394040e68c3bb32ed1e73992e096e5d10d2 (patch)
tree4aea421f3c0df5823391121704a8b3a824d35994 /test/libsolidity
parent591a4f1ff44af20fce9bafebf0fa0607e2bdfcc0 (diff)
downloaddexon-solidity-42c43394040e68c3bb32ed1e73992e096e5d10d2.tar.gz
dexon-solidity-42c43394040e68c3bb32ed1e73992e096e5d10d2.tar.zst
dexon-solidity-42c43394040e68c3bb32ed1e73992e096e5d10d2.zip
updated attempt, a couple of more things to sort through and change
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/SolidityParser.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityParser.cpp b/test/libsolidity/SolidityParser.cpp
index fd9076c3..d8c1a3e6 100644
--- a/test/libsolidity/SolidityParser.cpp
+++ b/test/libsolidity/SolidityParser.cpp
@@ -1047,6 +1047,20 @@ BOOST_AUTO_TEST_CASE(using_for)
BOOST_CHECK(successParse(text));
}
+BOOST_AUTO_TEST_CASE(inline_array_declaration)
+{
+ char const* text = R"(
+ contract c {
+ uint[] a;
+ function f() returns (uint, uint) {
+ a = [1,2,3];
+ return (a[3], [3,4][0]);
+ }
+ }
+ )";
+ BOOST_CHECK(successParse(text));
+}
+
BOOST_AUTO_TEST_SUITE_END()
}