aboutsummaryrefslogtreecommitdiffstats
path: root/test/libjulia
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-02-06 17:53:49 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-02-06 18:07:00 +0800
commit2cbbe5828191707f5e51ba699699bfa4dc6c3691 (patch)
tree7a7c908612a7e58c49ca16155f736a0288115a8d /test/libjulia
parentb0407cfac02bf8158385871e651591f9bee44ce0 (diff)
downloaddexon-solidity-2cbbe5828191707f5e51ba699699bfa4dc6c3691.tar.gz
dexon-solidity-2cbbe5828191707f5e51ba699699bfa4dc6c3691.tar.zst
dexon-solidity-2cbbe5828191707f5e51ba699699bfa4dc6c3691.zip
Support variable declarations without assignment in UnusedPruner
Diffstat (limited to 'test/libjulia')
-rw-r--r--test/libjulia/UnusedPruner.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libjulia/UnusedPruner.cpp b/test/libjulia/UnusedPruner.cpp
index e646cee6..48ada5ed 100644
--- a/test/libjulia/UnusedPruner.cpp
+++ b/test/libjulia/UnusedPruner.cpp
@@ -63,6 +63,14 @@ BOOST_AUTO_TEST_CASE(trivial)
);
}
+BOOST_AUTO_TEST_CASE(multi_declarations)
+{
+ CHECK(
+ "{ let x, y }",
+ "{ }"
+ );
+}
+
BOOST_AUTO_TEST_CASE(functions)
{
CHECK(