diff options
author | winsvega <winsvega@mail.ru> | 2015-02-11 19:12:18 +0800 |
---|---|---|
committer | winsvega <winsvega@mail.ru> | 2015-02-11 19:12:18 +0800 |
commit | a44feb813ed0ab0df5dd83c010c3c3d7111e4630 (patch) | |
tree | 5a68fa42cda17385372f4484ef3f2e6d81e9b24c /SolidityParser.cpp | |
parent | 30db15c1a9933972f0ad0236e50bc967ebf24dd3 (diff) | |
parent | 9a792edb33a95f8034cbb368e94e8ca0f4565415 (diff) | |
download | dexon-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.cpp | 11 |
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" |