aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityEndToEndTest.cpp
diff options
context:
space:
mode:
authorErik Kundt <bitshift@posteo.org>2018-07-18 23:20:26 +0800
committerErik Kundt <bitshift@posteo.org>2018-07-24 01:30:07 +0800
commitc622a1e56c0a02b890b45fd15f1fb4cb9d119b3b (patch)
tree48d2d0b7f17ceafd1a7dd4646860324a19fad563 /test/libsolidity/SolidityEndToEndTest.cpp
parentb909df4573130e020c7f4dfb61c0571ba1bc02ab (diff)
downloaddexon-solidity-c622a1e56c0a02b890b45fd15f1fb4cb9d119b3b.tar.gz
dexon-solidity-c622a1e56c0a02b890b45fd15f1fb4cb9d119b3b.tar.zst
dexon-solidity-c622a1e56c0a02b890b45fd15f1fb4cb9d119b3b.zip
Enforces data location of local mappings to storage.
Diffstat (limited to 'test/libsolidity/SolidityEndToEndTest.cpp')
-rw-r--r--test/libsolidity/SolidityEndToEndTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp
index d8f2f531..b9114b27 100644
--- a/test/libsolidity/SolidityEndToEndTest.cpp
+++ b/test/libsolidity/SolidityEndToEndTest.cpp
@@ -1534,7 +1534,7 @@ BOOST_AUTO_TEST_CASE(struct_reference)
}
function set() public {
data.z = 2;
- mapping(uint8 => s2) map = data.recursive;
+ mapping(uint8 => s2) storage map = data.recursive;
s2 storage inner = map[0];
inner.z = 3;
inner.recursive[0].z = inner.recursive[1].z + 1;