aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsubtly <subtly@users.noreply.github.com>2014-11-05 21:15:06 +0800
committersubtly <subtly@users.noreply.github.com>2014-11-05 21:15:06 +0800
commit25811ce5ff6575d1cfc7238a40b0347248336693 (patch)
treef38e0ab0a7effe9ce229b0db7029b4e508a9d8c4
parent4aeeb68d77f84a86ab6447eb7f28951b4904b79c (diff)
parent2432e2dbf364fa7425e18c3f51f24977e4b35fe4 (diff)
downloaddexon-solidity-25811ce5ff6575d1cfc7238a40b0347248336693.tar.gz
dexon-solidity-25811ce5ff6575d1cfc7238a40b0347248336693.tar.zst
dexon-solidity-25811ce5ff6575d1cfc7238a40b0347248336693.zip
Merge branch 'develop' into crypto
-rw-r--r--solidityParser.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/solidityParser.cpp b/solidityParser.cpp
index 4ca9370d..9319a02c 100644
--- a/solidityParser.cpp
+++ b/solidityParser.cpp
@@ -211,7 +211,15 @@ BOOST_AUTO_TEST_CASE(else_if_statement)
BOOST_CHECK_NO_THROW(parseText(text));
}
-
+BOOST_AUTO_TEST_CASE(statement_starting_with_type_conversion)
+{
+ char const* text = "contract test {\n"
+ " function fun() {\n"
+ " uint64(2);\n"
+ " }\n"
+ "}\n";
+ BOOST_CHECK_NO_THROW(parseText(text));
+}
BOOST_AUTO_TEST_SUITE_END()