aboutsummaryrefslogtreecommitdiffstats
path: root/test/libjulia
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-05-05 23:46:26 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-13 21:18:18 +0800
commitcee93d946d798a4076ab5df5f32c5687608defe8 (patch)
treecb18f5535430049f7474f0e777a82cff9cf8a713 /test/libjulia
parent2b33e0bcecdb2afe6a7ea242bce83480bb50a071 (diff)
downloaddexon-solidity-cee93d946d798a4076ab5df5f32c5687608defe8.tar.gz
dexon-solidity-cee93d946d798a4076ab5df5f32c5687608defe8.tar.zst
dexon-solidity-cee93d946d798a4076ab5df5f32c5687608defe8.zip
Support parsing let statements without a value
Diffstat (limited to 'test/libjulia')
-rw-r--r--test/libjulia/Parser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libjulia/Parser.cpp b/test/libjulia/Parser.cpp
index fa7c45ed..f6db828a 100644
--- a/test/libjulia/Parser.cpp
+++ b/test/libjulia/Parser.cpp
@@ -131,6 +131,11 @@ BOOST_AUTO_TEST_CASE(vardecl_bool)
BOOST_CHECK(successParse("{ let x:bool := false:bool }"));
}
+BOOST_AUTO_TEST_CASE(vardecl_empty)
+{
+ BOOST_CHECK(successParse("{ let x }"));
+}
+
BOOST_AUTO_TEST_CASE(assignment)
{
BOOST_CHECK(successParse("{ let x:u256 := 2:u256 let y:u256 := x }"));