Struct member access for storage and memory.

This commit is contained in:
chriseth
2020-06-03 10:37:39 +02:00
parent 37e8d78cff
commit e7f3c042b6
4 changed files with 60 additions and 2 deletions
@@ -12,6 +12,6 @@ contract test {
// compileViaYul: also
// ----
// data(uint256,uint256): 2, 2 -> 8
// data(uint256,uint256): 2, 8 -> FAILURE # NB: the original code contained a bug here #
// data(uint256,uint256): 2, 8 -> FAILURE # NB: the original code contained a bug here #
// dynamicData(uint256,uint256): 2, 2 -> 8
// dynamicData(uint256,uint256): 2, 8 -> FAILURE
@@ -8,5 +8,7 @@ contract test {
data[7].d = true;
}
}
// ====
// compileViaYul: also
// ----
// data(uint256): 7 -> 1, 2, true