pragma solidity 0.4.24; contract AssemblyTest { uint[] d = [1,2,3]; uint[3] s = [1,2,3]; function d_1() public view returns (uint r) { uint[] memory arr = d; assembly { r := arr } } function d_2() public view returns (uint r) { uint[] memory arr = d; assembly { r := mload(arr) } } function s_2() public view returns (uint r) { uint[3] memory arr = s; assembly { r := mload(arr) } } }
0.4.24