aboutsummaryrefslogtreecommitdiffstats
path: root/solidityParser.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-10-29 19:59:06 +0800
committerChristian <c@ethdev.com>2014-10-29 20:00:22 +0800
commit3f4befd6b4ee53d5972462af8083b41ab508acea (patch)
treebfec049f1876fccc4977794f34c54b1313f8f4a5 /solidityParser.cpp
parentcacc4477bf134ce28a87414e839e8fcc857a947d (diff)
downloaddexon-solidity-3f4befd6b4ee53d5972462af8083b41ab508acea.tar
dexon-solidity-3f4befd6b4ee53d5972462af8083b41ab508acea.tar.gz
dexon-solidity-3f4befd6b4ee53d5972462af8083b41ab508acea.tar.bz2
dexon-solidity-3f4befd6b4ee53d5972462af8083b41ab508acea.tar.lz
dexon-solidity-3f4befd6b4ee53d5972462af8083b41ab508acea.tar.xz
dexon-solidity-3f4befd6b4ee53d5972462af8083b41ab508acea.tar.zst
dexon-solidity-3f4befd6b4ee53d5972462af8083b41ab508acea.zip
Parser fix: Consume break and continue.
Diffstat (limited to 'solidityParser.cpp')
-rw-r--r--solidityParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/solidityParser.cpp b/solidityParser.cpp
index 025cd74d..701a6e76 100644
--- a/solidityParser.cpp
+++ b/solidityParser.cpp
@@ -185,7 +185,7 @@ BOOST_AUTO_TEST_CASE(while_loop)
{
char const* text = "contract test {\n"
" function fun(uint256 a) {\n"
- " uint256 x = (1 + 4).member(++67) || true;\n"
+ " while (true) { uint256 x = 1; break; continue; } x = 9;\n"
" }\n"
"}\n";
BOOST_CHECK_NO_THROW(parseText(text));