mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Introducing EnumType and some Parser tests
This commit is contained in:
parent
76d659dbe2
commit
bb30e9184b
@ -717,6 +717,20 @@ BOOST_AUTO_TEST_CASE(enum_declaration)
|
||||
BOOST_CHECK_NO_THROW(parseTextExplainError(text));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(empty_enum_declaration)
|
||||
{
|
||||
char const* text = R"(
|
||||
contract c {
|
||||
enum foo { };
|
||||
function c ()
|
||||
{
|
||||
a = 5;
|
||||
}
|
||||
uint256 a;
|
||||
})";
|
||||
BOOST_CHECK_NO_THROW(parseTextExplainError(text));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user