aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/multiVariableDeclaration/multiVariableDeclarationSimple.sol
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-07-05 00:35:01 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-07-13 02:33:52 +0800
commit62645d530253c365ac09979135e9037f2bde2934 (patch)
tree2d62564d9208f14f0e807d14fa2b5dd977acdaaa /test/libsolidity/syntaxTests/multiVariableDeclaration/multiVariableDeclarationSimple.sol
parent6f383e162648766d0cc804fe4cbb5760b48953a2 (diff)
downloaddexon-solidity-62645d530253c365ac09979135e9037f2bde2934.tar.gz
dexon-solidity-62645d530253c365ac09979135e9037f2bde2934.tar.zst
dexon-solidity-62645d530253c365ac09979135e9037f2bde2934.zip
Update tests.
Diffstat (limited to 'test/libsolidity/syntaxTests/multiVariableDeclaration/multiVariableDeclarationSimple.sol')
-rw-r--r--test/libsolidity/syntaxTests/multiVariableDeclaration/multiVariableDeclarationSimple.sol10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/libsolidity/syntaxTests/multiVariableDeclaration/multiVariableDeclarationSimple.sol b/test/libsolidity/syntaxTests/multiVariableDeclaration/multiVariableDeclarationSimple.sol
index 8e06322c..a2fcce18 100644
--- a/test/libsolidity/syntaxTests/multiVariableDeclaration/multiVariableDeclarationSimple.sol
+++ b/test/libsolidity/syntaxTests/multiVariableDeclaration/multiVariableDeclarationSimple.sol
@@ -1,12 +1,12 @@
contract C {
- function f() internal returns (uint, uint, uint, uint) {
+ function f() internal pure returns (uint, uint, uint, uint) {
(uint a, uint b,,) = f();
a; b;
}
- function g() internal returns (bytes memory, string storage) {
- (bytes memory a, string storage b) = g();
+ function g() internal pure {
+ (bytes memory a, string storage b) = h();
a; b;
}
-}
+ function h() internal pure returns (bytes memory, string storage s) { s = s; }
+}
// ----
-// Warning: (163-169): This variable is of storage pointer type and might be returned without assignment. This can cause storage corruption. Assign the variable (potentially from itself) to remove this warning.