solidity/test/libsolidity/semanticTests/memoryManagement/assembly_access.sol
chriseth dbb24484e9
Update test/libsolidity/semanticTests/memoryManagement/assembly_access.sol
Co-authored-by: Kamil Śliwak <kamil.sliwak@codepoets.it>
2020-11-24 14:39:37 +01:00

17 lines
366 B
Solidity

contract C {
function f() public pure {
uint[] memory x;
uint y;
assembly {
y := x
}
// The value of an uninitialized dynamic array is not zero but rather
// an address of a location in memory that has the value of zero.
assert(y != 0);
}
}
// ====
// compileViaYul: also
// ----
// f() ->