aboutsummaryrefslogtreecommitdiffstats
path: root/SolidityParser.cpp
diff options
context:
space:
mode:
authorwinsvega <winsvega@mail.ru>2015-02-11 19:12:18 +0800
committerwinsvega <winsvega@mail.ru>2015-02-11 19:12:18 +0800
commita44feb813ed0ab0df5dd83c010c3c3d7111e4630 (patch)
tree5a68fa42cda17385372f4484ef3f2e6d81e9b24c /SolidityParser.cpp
parent30db15c1a9933972f0ad0236e50bc967ebf24dd3 (diff)
parent9a792edb33a95f8034cbb368e94e8ca0f4565415 (diff)
downloaddexon-solidity-a44feb813ed0ab0df5dd83c010c3c3d7111e4630.tar
dexon-solidity-a44feb813ed0ab0df5dd83c010c3c3d7111e4630.tar.gz
dexon-solidity-a44feb813ed0ab0df5dd83c010c3c3d7111e4630.tar.bz2
dexon-solidity-a44feb813ed0ab0df5dd83c010c3c3d7111e4630.tar.lz
dexon-solidity-a44feb813ed0ab0df5dd83c010c3c3d7111e4630.tar.xz
dexon-solidity-a44feb813ed0ab0df5dd83c010c3c3d7111e4630.tar.zst
dexon-solidity-a44feb813ed0ab0df5dd83c010c3c3d7111e4630.zip
Merge branch 'develop' of https://github.com/ethereum/cpp-ethereum into develop
Diffstat (limited to 'SolidityParser.cpp')
-rw-r--r--SolidityParser.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/SolidityParser.cpp b/SolidityParser.cpp
index 7af99567..84f36170 100644
--- a/SolidityParser.cpp
+++ b/SolidityParser.cpp
@@ -387,6 +387,17 @@ BOOST_AUTO_TEST_CASE(complex_expression)
BOOST_CHECK_NO_THROW(parseText(text));
}
+BOOST_AUTO_TEST_CASE(exp_expression)
+{
+ char const* text = R"(
+ contract test {
+ function fun(uint256 a) {
+ uint256 x = 3 ** a;
+ }
+ })";
+ BOOST_CHECK_NO_THROW(parseText(text));
+}
+
BOOST_AUTO_TEST_CASE(while_loop)
{
char const* text = "contract test {\n"