aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/empty_enum.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing/empty_enum.sol')
-rw-r--r--test/libsolidity/syntaxTests/parsing/empty_enum.sol5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/empty_enum.sol b/test/libsolidity/syntaxTests/parsing/empty_enum.sol
new file mode 100644
index 00000000..483f6a91
--- /dev/null
+++ b/test/libsolidity/syntaxTests/parsing/empty_enum.sol
@@ -0,0 +1,5 @@
+contract c {
+ enum foo { }
+}
+// ----
+// ParserError: (25-26): enum with no members is not allowed.