solidity/test/libsolidity/semanticTests/structs/struct_storage_to_mapping.sol
Daniel Kirchner a8f7c69c47 Adjust tests.
2021-09-13 20:41:40 +02:00

19 lines
295 B
Solidity

contract C {
struct S {
uint a;
}
S s;
mapping (uint => S) m;
function f() external returns (bool) {
s.a = 12;
m[1] = s;
return m[1].a == 12;
}
}
// ====
// requiresYulOptimizer: minimalStack
// compileViaYul: also
// ----
// f() -> true