aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-11-13 20:22:59 +0800
committerGitHub <noreply@github.com>2018-11-13 20:22:59 +0800
commit7e0041cf22a19e109742d36d484bda3b8f0cde40 (patch)
tree51b27835f04a90aa82c8cee7f3a7f4f34dd4692e /test
parent9c6048b0b855d5f3409b1aa7ac47f9f79a0dcde1 (diff)
parentb5e9d849ef93589ab8eb59e1becbc4d7a8250ccb (diff)
downloaddexon-solidity-7e0041cf22a19e109742d36d484bda3b8f0cde40.tar
dexon-solidity-7e0041cf22a19e109742d36d484bda3b8f0cde40.tar.gz
dexon-solidity-7e0041cf22a19e109742d36d484bda3b8f0cde40.tar.bz2
dexon-solidity-7e0041cf22a19e109742d36d484bda3b8f0cde40.tar.lz
dexon-solidity-7e0041cf22a19e109742d36d484bda3b8f0cde40.tar.xz
dexon-solidity-7e0041cf22a19e109742d36d484bda3b8f0cde40.tar.zst
dexon-solidity-7e0041cf22a19e109742d36d484bda3b8f0cde40.zip
Merge pull request #5406 from ethereum/uninitializedStorageUnimplemented
Ignore unimplemented functions for detecting uninitialized storage returns.
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/syntaxTests/controlFlow/storageReturn/unimplemented_internal.sol4
-rw-r--r--test/libsolidity/syntaxTests/controlFlow/storageReturn/unimplemented_library.sol4
2 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/controlFlow/storageReturn/unimplemented_internal.sol b/test/libsolidity/syntaxTests/controlFlow/storageReturn/unimplemented_internal.sol
new file mode 100644
index 00000000..8bce0dd2
--- /dev/null
+++ b/test/libsolidity/syntaxTests/controlFlow/storageReturn/unimplemented_internal.sol
@@ -0,0 +1,4 @@
+contract C {
+ function f() internal returns(uint[] storage);
+ function g() internal returns(uint[] storage s);
+}
diff --git a/test/libsolidity/syntaxTests/controlFlow/storageReturn/unimplemented_library.sol b/test/libsolidity/syntaxTests/controlFlow/storageReturn/unimplemented_library.sol
new file mode 100644
index 00000000..818b6a20
--- /dev/null
+++ b/test/libsolidity/syntaxTests/controlFlow/storageReturn/unimplemented_library.sol
@@ -0,0 +1,4 @@
+library L {
+ function f() public returns(uint[] storage);
+ function g() public returns(uint[] storage s);
+}