aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityOptimizer.cpp
diff options
context:
space:
mode:
authorChase McDermott <chasemcd1745@tamu.edu>2018-07-12 12:18:50 +0800
committerchriseth <chris@ethereum.org>2018-07-16 20:18:16 +0800
commitf48d01d0660747b0071e9d82a0261ce15bcc4c35 (patch)
treeaefd334e35456e79439c85bd1fe98f99a1ecf9a4 /test/libsolidity/SolidityOptimizer.cpp
parentc5ff173431741a4b12cac73c10e2132e3e4bb9d5 (diff)
downloaddexon-solidity-f48d01d0660747b0071e9d82a0261ce15bcc4c35.tar.gz
dexon-solidity-f48d01d0660747b0071e9d82a0261ce15bcc4c35.tar.zst
dexon-solidity-f48d01d0660747b0071e9d82a0261ce15bcc4c35.zip
Added default data locations to parameters for end to end tests.
Diffstat (limited to 'test/libsolidity/SolidityOptimizer.cpp')
-rw-r--r--test/libsolidity/SolidityOptimizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/SolidityOptimizer.cpp b/test/libsolidity/SolidityOptimizer.cpp
index 764550eb..43ae5f73 100644
--- a/test/libsolidity/SolidityOptimizer.cpp
+++ b/test/libsolidity/SolidityOptimizer.cpp
@@ -370,7 +370,7 @@ BOOST_AUTO_TEST_CASE(sequence_number_for_calls)
// to storage), so the sequence number should be incremented.
char const* sourceCode = R"(
contract test {
- function f(string a, string b) public returns (bool) { return sha256(bytes(a)) == sha256(bytes(b)); }
+ function f(string memory a, string memory b) public returns (bool) { return sha256(bytes(a)) == sha256(bytes(b)); }
}
)";
compileBothVersions(sourceCode);
@@ -619,7 +619,7 @@ BOOST_AUTO_TEST_CASE(optimise_multi_stores)
struct S { uint16 a; uint16 b; uint16[3] c; uint[] dyn; }
uint padding;
S[] s;
- function f() public returns (uint16, uint16, uint16[3], uint) {
+ function f() public returns (uint16, uint16, uint16[3] memory, uint) {
uint16[3] memory c;
c[0] = 7;
c[1] = 8;