aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityEndToEndTest.cpp
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-07-11 19:23:33 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-07-12 18:54:42 +0800
commit8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2 (patch)
tree994b5301030fad5985f1a347a1603875aaca523b /test/libsolidity/SolidityEndToEndTest.cpp
parenta1f54f4e40811e526541f3a54f6a19dd42c8e688 (diff)
downloaddexon-solidity-8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2.tar.gz
dexon-solidity-8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2.tar.zst
dexon-solidity-8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2.zip
Update test wrt requiring storage locations.
Diffstat (limited to 'test/libsolidity/SolidityEndToEndTest.cpp')
-rw-r--r--test/libsolidity/SolidityEndToEndTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp
index 3cd3b9b7..dd20756f 100644
--- a/test/libsolidity/SolidityEndToEndTest.cpp
+++ b/test/libsolidity/SolidityEndToEndTest.cpp
@@ -1273,7 +1273,7 @@ BOOST_AUTO_TEST_CASE(struct_reference)
function set() public {
data.z = 2;
mapping(uint8 => s2) map = data.recursive;
- s2 inner = map[0];
+ s2 storage inner = map[0];
inner.z = 3;
inner.recursive[0].z = inner.recursive[1].z + 1;
}
@@ -6112,7 +6112,7 @@ BOOST_AUTO_TEST_CASE(struct_assign_reference_to_struct)
}
function assign() public returns (uint ret_local, uint ret_global, uint ret_global3, uint ret_global1)
{
- testStruct x = data1; //x is a reference data1.m_value == 2 as well as x.m_value = 2
+ testStruct storage x = data1; //x is a reference data1.m_value == 2 as well as x.m_value = 2
data2 = data1; // should copy data. data2.m_value == 2
ret_local = x.m_value; // = 2
@@ -6144,7 +6144,7 @@ BOOST_AUTO_TEST_CASE(struct_delete_member)
}
function deleteMember() public returns (uint ret_value)
{
- testStruct x = data1; //should not copy the data. data1.m_value == 2 but x.m_value = 0
+ testStruct storage x = data1; //should not copy the data. data1.m_value == 2 but x.m_value = 0
x.m_value = 4;
delete x.m_value;
ret_value = data1.m_value;
@@ -8611,7 +8611,7 @@ BOOST_AUTO_TEST_CASE(inline_assembly_storage_access_via_pointer)
Data public a;
uint public separator2;
function f() public returns (bool) {
- Data x = a;
+ Data storage x = a;
uint off;
assembly {
sstore(x_slot, 7)