aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/controlFlow
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-07-12 17:04:38 +0800
committerGitHub <noreply@github.com>2018-07-12 17:04:38 +0800
commitff9974e94cc8d2a0ca9b0f3444de48c35b3e8305 (patch)
tree54ac5642482c44be352ea327f1f833edf3232d18 /test/libsolidity/syntaxTests/controlFlow
parent71777ce729d9cf2a536fe966de6c6dd1ee43c807 (diff)
parentfc78b32847ce462bbcc443bbf269a1bdd8bcc99e (diff)
downloaddexon-solidity-ff9974e94cc8d2a0ca9b0f3444de48c35b3e8305.tar
dexon-solidity-ff9974e94cc8d2a0ca9b0f3444de48c35b3e8305.tar.gz
dexon-solidity-ff9974e94cc8d2a0ca9b0f3444de48c35b3e8305.tar.bz2
dexon-solidity-ff9974e94cc8d2a0ca9b0f3444de48c35b3e8305.tar.lz
dexon-solidity-ff9974e94cc8d2a0ca9b0f3444de48c35b3e8305.tar.xz
dexon-solidity-ff9974e94cc8d2a0ca9b0f3444de48c35b3e8305.tar.zst
dexon-solidity-ff9974e94cc8d2a0ca9b0f3444de48c35b3e8305.zip
Merge pull request #4488 from chase1745/use-explicit-data-locations-syntax-tests
Added default data locations to parameters for syntax tests.
Diffstat (limited to 'test/libsolidity/syntaxTests/controlFlow')
-rw-r--r--test/libsolidity/syntaxTests/controlFlow/storageReturn/default_location.sol10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/libsolidity/syntaxTests/controlFlow/storageReturn/default_location.sol b/test/libsolidity/syntaxTests/controlFlow/storageReturn/default_location.sol
index 9a42192d..ec83c596 100644
--- a/test/libsolidity/syntaxTests/controlFlow/storageReturn/default_location.sol
+++ b/test/libsolidity/syntaxTests/controlFlow/storageReturn/default_location.sol
@@ -1,18 +1,18 @@
contract C {
struct S { bool f; }
S s;
- function f() internal view returns (S c) {
+ function f() internal view returns (S memory c) {
c = s;
}
- function g() internal view returns (S) {
+ function g() internal view returns (S memory) {
return s;
}
- function h() internal pure returns (S) {
+ function h() internal pure returns (S memory) {
}
- function i(bool flag) internal view returns (S c) {
+ function i(bool flag) internal view returns (S memory c) {
if (flag) c = s;
}
- function j(bool flag) internal view returns (S) {
+ function j(bool flag) internal view returns (S memory) {
if (flag) return s;
}
}