mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Copying structs from storage to storage.
This commit is contained in:
@@ -32,5 +32,7 @@ contract test {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// assign() -> 2, 2, 3, 3
|
||||
|
||||
@@ -20,6 +20,8 @@ contract c {
|
||||
return data1.data[i];
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// storage: empty
|
||||
// set(uint256,bytes,uint256): 12, 0x60, 13, 33, "12345678901234567890123456789012", "3" -> true
|
||||
|
||||
@@ -34,6 +34,8 @@ contract c {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// set(uint256): 7 -> true
|
||||
// retrieve(uint256): 7 -> 1, 3, 4, 2
|
||||
|
||||
@@ -23,6 +23,8 @@ contract c {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// x() -> 0, 0
|
||||
// y() -> 0, 0
|
||||
|
||||
Reference in New Issue
Block a user