aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/array/uninitialized_storage_var.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/array/uninitialized_storage_var.sol')
-rw-r--r--test/libsolidity/syntaxTests/array/uninitialized_storage_var.sol9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/array/uninitialized_storage_var.sol b/test/libsolidity/syntaxTests/array/uninitialized_storage_var.sol
new file mode 100644
index 00000000..363d8147
--- /dev/null
+++ b/test/libsolidity/syntaxTests/array/uninitialized_storage_var.sol
@@ -0,0 +1,9 @@
+contract C {
+ function f() {
+ uint[] storage x;
+ uint[10] storage y;
+ }
+}
+// ----
+// DeclarationError: (31-47): Uninitialized storage pointer.
+// DeclarationError: (51-69): Uninitialized storage pointer.