diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-02-06 17:53:49 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-02-06 18:07:00 +0800 |
commit | 2cbbe5828191707f5e51ba699699bfa4dc6c3691 (patch) | |
tree | 7a7c908612a7e58c49ca16155f736a0288115a8d /test | |
parent | b0407cfac02bf8158385871e651591f9bee44ce0 (diff) | |
download | dexon-solidity-2cbbe5828191707f5e51ba699699bfa4dc6c3691.tar.gz dexon-solidity-2cbbe5828191707f5e51ba699699bfa4dc6c3691.tar.zst dexon-solidity-2cbbe5828191707f5e51ba699699bfa4dc6c3691.zip |
Support variable declarations without assignment in UnusedPruner
Diffstat (limited to 'test')
-rw-r--r-- | test/libjulia/UnusedPruner.cpp | 8 |
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( |