solidity/test/libsolidity/semanticTests/shifts/shifts.sol

11 lines
200 B
Solidity
Raw Normal View History

contract C {
function f(uint x) public returns (uint y) {
assembly { y := shl(2, x) }
}
}
// ====
2019-05-23 14:38:11 +00:00
// compileViaYul: also
// EVMVersion: >=constantinople
// ----
// f(uint256): 7 -> 28