aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/controlFlow
diff options
context:
space:
mode:
authorChase McDermott <chasemcd1745@tamu.edu>2018-07-12 09:24:50 +0800
committerChase McDermott <chasemcd1745@tamu.edu>2018-07-12 09:24:50 +0800
commitfc78b32847ce462bbcc443bbf269a1bdd8bcc99e (patch)
tree54ac5642482c44be352ea327f1f833edf3232d18 /test/libsolidity/syntaxTests/controlFlow
parent71777ce729d9cf2a536fe966de6c6dd1ee43c807 (diff)
downloaddexon-solidity-fc78b32847ce462bbcc443bbf269a1bdd8bcc99e.tar.gz
dexon-solidity-fc78b32847ce462bbcc443bbf269a1bdd8bcc99e.tar.zst
dexon-solidity-fc78b32847ce462bbcc443bbf269a1bdd8bcc99e.zip
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;
}
}