aboutsummaryrefslogtreecommitdiffstats
path: root/SolidityParser.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-04-16 06:06:57 +0800
committerchriseth <c@ethdev.com>2015-04-16 06:09:28 +0800
commit968ebf6dbc27c1ab489ea64841246a283d985261 (patch)
tree9f2cf4e7ae4c667ba691d1940fffc11ce9d3a012 /SolidityParser.cpp
parent5469743891679267ea1fdad0cd68099101e43b19 (diff)
downloaddexon-solidity-968ebf6dbc27c1ab489ea64841246a283d985261.tar
dexon-solidity-968ebf6dbc27c1ab489ea64841246a283d985261.tar.gz
dexon-solidity-968ebf6dbc27c1ab489ea64841246a283d985261.tar.bz2
dexon-solidity-968ebf6dbc27c1ab489ea64841246a283d985261.tar.lz
dexon-solidity-968ebf6dbc27c1ab489ea64841246a283d985261.tar.xz
dexon-solidity-968ebf6dbc27c1ab489ea64841246a283d985261.tar.zst
dexon-solidity-968ebf6dbc27c1ab489ea64841246a283d985261.zip
Bugfixes concerning variable declarations.
Fixes #1637
Diffstat (limited to 'SolidityParser.cpp')
-rw-r--r--SolidityParser.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/SolidityParser.cpp b/SolidityParser.cpp
index b76f0065..7cd8efce 100644
--- a/SolidityParser.cpp
+++ b/SolidityParser.cpp
@@ -841,6 +841,15 @@ BOOST_AUTO_TEST_CASE(constant_is_keyword)
BOOST_CHECK_THROW(parseText(text), ParserError);
}
+BOOST_AUTO_TEST_CASE(var_array)
+{
+ char const* text = R"(
+ contract Foo {
+ function f() { var[] a; }
+ })";
+ BOOST_CHECK_THROW(parseText(text), ParserError);
+}
+
BOOST_AUTO_TEST_SUITE_END()
}