diff options
author | chriseth <chris@ethereum.org> | 2018-08-15 03:38:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-15 03:38:07 +0800 |
commit | cc54f6c4256cdccf4b25586ed63800caa836d9c6 (patch) | |
tree | 11fe607f1acbc6daaa8d17b30ac45db2f7981d77 /test/libsolidity/ABIDecoderTests.cpp | |
parent | 8f27fb1f4a14f369e8feb3ea22a38d50998cad5c (diff) | |
parent | 14e116c1d57e1797e7206299d0fdfed2aa03cdf2 (diff) | |
download | dexon-solidity-cc54f6c4256cdccf4b25586ed63800caa836d9c6.tar dexon-solidity-cc54f6c4256cdccf4b25586ed63800caa836d9c6.tar.gz dexon-solidity-cc54f6c4256cdccf4b25586ed63800caa836d9c6.tar.bz2 dexon-solidity-cc54f6c4256cdccf4b25586ed63800caa836d9c6.tar.lz dexon-solidity-cc54f6c4256cdccf4b25586ed63800caa836d9c6.tar.xz dexon-solidity-cc54f6c4256cdccf4b25586ed63800caa836d9c6.tar.zst dexon-solidity-cc54f6c4256cdccf4b25586ed63800caa836d9c6.zip |
Merge pull request #4738 from ethereum/dataloc_merged
Enforce data location.
Diffstat (limited to 'test/libsolidity/ABIDecoderTests.cpp')
-rw-r--r-- | test/libsolidity/ABIDecoderTests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/ABIDecoderTests.cpp b/test/libsolidity/ABIDecoderTests.cpp index f91a4f85..94319985 100644 --- a/test/libsolidity/ABIDecoderTests.cpp +++ b/test/libsolidity/ABIDecoderTests.cpp @@ -234,7 +234,7 @@ BOOST_AUTO_TEST_CASE(byte_arrays) return (a, b.length, b[3], c); } - function f_external(uint a, bytes b, uint c) + function f_external(uint a, bytes calldata b, uint c) external pure returns (uint, uint, byte, uint) { return (a, b.length, b[3], c); } @@ -261,7 +261,7 @@ BOOST_AUTO_TEST_CASE(calldata_arrays_too_large) { string sourceCode = R"( contract C { - function f(uint a, uint[] b, uint c) external pure returns (uint) { + function f(uint a, uint[] calldata b, uint c) external pure returns (uint) { return 7; } } |