aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/array
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-07-03 21:10:39 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-07-10 17:38:32 +0800
commit46d6454b1f47e53c791d71aba26bb953ec667433 (patch)
tree7159563791919cb0a7fb94d736764b7fa3f2589b /test/libsolidity/syntaxTests/array
parentfe1d5da2a6dc180850be04e01e9316ad9d2f58c2 (diff)
downloaddexon-solidity-46d6454b1f47e53c791d71aba26bb953ec667433.tar.gz
dexon-solidity-46d6454b1f47e53c791d71aba26bb953ec667433.tar.zst
dexon-solidity-46d6454b1f47e53c791d71aba26bb953ec667433.zip
Update tests.
Diffstat (limited to 'test/libsolidity/syntaxTests/array')
-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.