solidity/test/libsolidity/syntaxTests/empty_struct.sol
Christian Parpart a211b89118 Enforce disallowing empty structs
This patch enfoces an error when it encounters an empty struct,
effectively eliminating the deprecation warning.

Also adjust 419_interface_structs to explicitely test for (non-empty) structs,
as this behaviour "may" change in the future.
2018-06-14 00:24:43 +01:00

6 lines
102 B
Solidity

contract test {
struct A {}
}
// ----
// SyntaxError: (17-28): Defining empty structs is disallowed.