aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/empty_struct.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/empty_struct.sol')
-rw-r--r--test/libsolidity/syntaxTests/empty_struct.sol5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/empty_struct.sol b/test/libsolidity/syntaxTests/empty_struct.sol
new file mode 100644
index 00000000..87bc2ffe
--- /dev/null
+++ b/test/libsolidity/syntaxTests/empty_struct.sol
@@ -0,0 +1,5 @@
+contract test {
+ struct A {}
+}
+// ----
+// SyntaxError: Defining empty structs is disallowed.