aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityParser.cpp
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-11-09 21:08:51 +0800
committerYoichi Hirai <i@yoichihirai.com>2016-11-12 00:48:03 +0800
commiteee629652e3ee851419805ad1cb54d168fa77763 (patch)
tree6c0343fc961c133d16491871577f3f6c43c0c24b /test/libsolidity/SolidityParser.cpp
parent457daecba1f7e267cf7578b702945bb6532aa2af (diff)
downloaddexon-solidity-eee629652e3ee851419805ad1cb54d168fa77763.tar.gz
dexon-solidity-eee629652e3ee851419805ad1cb54d168fa77763.tar.zst
dexon-solidity-eee629652e3ee851419805ad1cb54d168fa77763.zip
parsing: ban empty enum definition.
Diffstat (limited to 'test/libsolidity/SolidityParser.cpp')
-rw-r--r--test/libsolidity/SolidityParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityParser.cpp b/test/libsolidity/SolidityParser.cpp
index a81a9828..ec23d5fd 100644
--- a/test/libsolidity/SolidityParser.cpp
+++ b/test/libsolidity/SolidityParser.cpp
@@ -824,7 +824,7 @@ BOOST_AUTO_TEST_CASE(empty_enum_declaration)
contract c {
enum foo { }
})";
- BOOST_CHECK(successParse(text));
+ BOOST_CHECK(!successParse(text));
}
BOOST_AUTO_TEST_CASE(malformed_enum_declaration)