mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #442 from chriseth/sol_fix_break
Parser fix: Consume break and continue.
This commit is contained in:
commit
5110ffe304
@ -185,7 +185,7 @@ BOOST_AUTO_TEST_CASE(while_loop)
|
|||||||
{
|
{
|
||||||
char const* text = "contract test {\n"
|
char const* text = "contract test {\n"
|
||||||
" function fun(uint256 a) {\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"
|
||||||
"}\n";
|
"}\n";
|
||||||
BOOST_CHECK_NO_THROW(parseText(text));
|
BOOST_CHECK_NO_THROW(parseText(text));
|
||||||
|
Loading…
Reference in New Issue
Block a user